: I am new to solr. Am facing an issue wherein the highlighting of the : searchresults for matches is not working when I have set a unique field : as: : : <uniqueKey>id</uniqueKey> : : If this is commented then highlighting starts working. I need to have a : unique field. Could someone please explain this erratic behaviour. I am : setting this field while posting the documents to be indexed.
there is no reason why having a uniqueKey should prevent highlihting from working. But in order to try and help you you need to provide a *lot* more info. for starters: explaining what you mean by "not working" ... are you getting an error? are you getting results you don't expect? what do your configs look like? what do your requests look like? etc... Please consult this wiki page and then repost your question as a reply... https://wiki.apache.org/solr/UsingMailingLists -Hoss