Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

By default, ViaWorks will highlight search terms that are found within both the text and the title of documents.  However, the default settings can be changed by the ViaWorks administrator.  

Highlighting can impact search performance.  Specific fields can be removed from the list of fields that will be highlighted, thus reducing the time it takes to display the search results.  Administrators should only change the default settings if it is believed that highlighting is causing a significant impact to search performance.

To change the highlighting defaults in the configuration so that, for example, only hits in the title will be highlighted, perform the following:

  • Within Windows Explorer or from a Command Prompt, navigate to the "\ProgramData\VirtualWorks\ViaWorks\Solr\ViaWorksV2\conf" folder
  • Edit the "solrconfig.xml" file
  • Within the file, scroll down to the "Highlighting defaults" section
  • If running a version of ViaWorks prior to 2.4, or if you upgraded to ViaWorks 2.4 and did not perform a "fresh" install:
    • On the line containing the following:

<str name="hl.fl">document_text title_exact text_st title_st </str>

...remove both "document_text" and "text_st" so the line now reads as follows:

<str name="hl.fl">title_exact title_st </str>

  • If using the new database schema as a result of a "fresh" install of ViaWorks 2.4:
    • On the line containing the following:

<str name="hl.fl">search_title search_text_st </str>

...remove "search_text_st" so the line now reads as follows:

<str name="hl.fl">search_title </str>

  • Restart the index service by reloading the ViaWorks "core".  
    • From the ViaWorks server, open a browser and navigate to "http://localhost:8983/solr/#/"
    • Click on "Core Admin" from the menu items on the left
    • Click the "Reload" button at the top of the page
  • No labels