Hi, Query pasted in my post, is returning 1 record with 0 highlights, if i just remove hl.maxAnalyzedChars= -1 from my query, it return proper highlight...
same query with some different random id ,working fine and returning highlights properly , while few records return 0 highlights with hl.maxAnalyzedChars= -1 so behavior of hl.maxAnalyzedChars=-1 is causing issue, and its randomly failing for few records. Also i can not remove hl.maxAnalyzedChars=-1 from my search as, my text field is very long and I don't want parser to limit the scan char length, so need to resolve issue some how , without removing hl.maxAnalyzedChars= -1 from search query. Dmitry Kan-2 wrote > You didn't say, what is exactly going weird.. > > > On Fri, May 10, 2013 at 2:19 PM, meghana < > meghana.ravani@ > > wrote: > >> I am facing one weird issue while setting hl.maxAnalyzedChars to -1 to >> fetch >> highlight for some random records, for other records its working fine. >> >> Below is my solr query >> >> http://localhost:8080/solr/core0/select?q=(text:"new year") AND >> (id:2343287)&hl=on&hl.fl=text&hl.fragsize=500&hl.maxAnalyzedChars=-1 >> >> If i remove hl.maxAnalyzedChars=-1 from above query , or set it to some >> positive value (higher than text field length) , then it return record >> with >> proper highlight. >> >> But my text field length is very long, and i want like to limit it, so I >> also need to set hl.maxAnalyzedChars to -1 . Please help me to solve >> this. >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Issue-with-getting-highlight-with-hl-maxAnalyzedChars-1-tp4062269.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> -- View this message in context: http://lucene.472066.n3.nabble.com/Issue-with-getting-highlight-with-hl-maxAnalyzedChars-1-tp4062269p4063187.html Sent from the Solr - User mailing list archive at Nabble.com.