Hi, I have a problem when I Query Solr matches the results, but when I turn on selection based on the results of this query, the highlight does not work.
My request
+ Content: "item 503"
The content is of the text type, and one important thing in the text element 503 is displayed as "element 503 (c)", can open the parentheses at the end create a problem ?? please, help
here stands out the section in SolrSonfig.xml
<highlighting> <fragmenter name="gap" class="org.apache.solr.highlight.GapFragmenter" default="true"> <lst name="defaults"> <int name="hl.fragsize">100</int> </lst> </fragmenter> <fragmenter name="regex" class="org.apache.solr.highlight.RegexFragmenter"> <lst name="defaults"> <int name="hl.fragsize">70</int> <float name="hl.regex.slop">0.5</float> <str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str> </lst> </fragmenter> <formatter name="html" class="org.apache.solr.highlight.HtmlFormatter" default="true"> <lst name="defaults"> <str name="hl.simple.pre"><![CDATA[<em>]]></str> <str name="hl.simple.post"><![CDATA[</em>]]></str> </lst> </formatter> </highlighting> and here is fieldtype definition in schema.xml <fieldtype name="text" class="solr.TextField"> <analyzer> <tokenizer class="solr.StandardTokenizerFactory" luceneMatchVersion="LUCENE_29"/> <filter class="solr.StandardFilterFactory"/> </analyzer> </fieldtype> and here is field definition <field name="Contents" type="text" indexed="true" stored="true" />
Relations Asan.
source share