- Add the following entries in environment variables:
- SOLR_HOST=localhost
- SOLR_PORT=8983
- SOLR_METADATA_CORE=ctmetadata\
- SOLR_BUSI_PRIV_CORE=business_private
- SOLR_BUSI_SEMIPRIV_CORE=business_semiprivate
- SOLR_BUSI_PUBLIC_CORE=business_public
- Open command prompt in bin directory (For e.g. D:\solr-7.7.0_server\solr-7.7.0\bin) of the server and execute the following command to start the server.
Command: solr start - To enable search icon in your end application, use the renderUIWidget API as follows:
canvas.renderUIWidget('SolrSearch':'#ct_search_area');
where, ct_search_area -> Position to render the widget.
This renders the Solr Search icon in the div mentioned in 2nd argument. - Reindex the Solr search so that the index points to the values currently present in the DB.
To reindex, use the following URL:
http://<host>:<port number>/<application context root>/solrIndex.jsp?actionToDo=reindex&solrId=CT_Metadata
Indexing
All the metadata such as workspaces, widgets and forms will be indexed. The solrIndex.jsp performs the following actions through actionToDo attribute.
...
Note | |||||
---|---|---|---|---|---|
To insert into the table CT_SOLR_DATA_PROVIDER, refer the following query
|
...