Changeset 35172 for gs3-extensions
- Timestamp:
- 2021-05-20T14:26:35+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/util/SolrQueryWrapper.java
r33388 r35172 547 547 public String runHighlightingQuery(String query,String hldocOID) 548 548 { 549 550 549 SolrQueryResult solr_query_result = new SolrQueryResult(); 551 550 solr_query_result.clear(); … … 564 563 //Set field for highlighting 565 564 solrQuery.setParam("hl.fl", highlight_field); 565 566 // this option only available for the OriginalHighlighter (hl.method=original, the default) 567 // if we are doing document level search, we only want to highlight the first section, 568 // (TX element) if applicable. Otherwise get a middle section displayed at the start of 569 // a document, outside the toc. 570 // if we are doing section level search, there will only be one TX element 571 solrQuery.setParam("hl.maxMultiValuedToExamine", "1"); 566 572 567 573 //Get whole highlighted field
Note:
See TracChangeset
for help on using the changeset viewer.