Dhaivat, Can you give us the concrete document that you are trying to search and make a highlight snippet? And what is your Solr version?
koji -- Query Log Visualizer for Apache Solr http://soleami.com/ (12/02/21 20:29), dhaivat wrote:
Hi I am newbie to Solr and i am using Sorj Client to create index and query the solr data.. When i am querying the data i want to use Highlight feature of solr so i am using Fast Vector Highlighter to enable highlight on words.. I found that it's working fine for some documents and for some document it's returning any highlighted words even though the field of document contents that word.. i am using the following parameters using solrj client : query.add("hl","true"); query.add("hl.q",term); query.add("hl.fl","contents"); query.add("hl.snippets","100"); query.add("hl.fragsize","100000"); query.add("hl.maxAnalyzedChars","100000"); query.add("hl.useFastVectorHighlighter","true"); query.add("hl.highlightMultiTerm","true"); query.add("hl.regex.slop","0.5"); query.add("hl.regex.pattern","[-\\w ,/\n\\\"']*"); query.setHighlightSimplePre("*"); query.setHighlightSimplePost("*"); My solrconfig is pretty strait forward haven't specified anything related to highlighter there. this is how my solrConfig looks like : <config> <updateHandler class="solr.DirectUpdateHandler2" /> <requestDispatcher handleSelect="true"> <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" /> </requestDispatcher> <requestHandler name="standard" class="solr.StandardRequestHandler" default="true" /> <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" /> <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" /> <admin> <defaultQuery>solr</defaultQuery> </admin> </config> i have also enabled the TermVectors,TermOffsets,TermPostions on Field on which i am indexing can anyone tell me where i am going wrong ? thanks in advance Dhaivat -- View this message in context: http://lucene.472066.n3.nabble.com/Fast-Vector-Highlighter-Working-for-some-records-only-tp3763286p3763286.html Sent from the Solr - User mailing list archive at Nabble.com.