Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. 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

  2. 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

  3. 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.

  4. 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

Code Block
languagesql
Insert into CT_SOLR_DATA_PROVIDER 
(APPLICATION_ID, SOLR_ID,SOLR_DATA_CLASS,CLASS_DESCRIPTION,DATA_SCOPE,TENANT_ID,LST_INDEXED_TIME,LST_REINDEXED_TIME) 
values ('&&APPLICATION_ID', 'CT_Metadata','com.intellectdesign.canvas.viewdefinition.solr.CTSolrDataLoader',
'Class contains the data for indexing the CT framework metadata for forms, widgets and workspaces.','public',null,null,null);


...