Another ugly solution would be to use the debugQuery=true option, then analyze the reults in explain, if the word isnt in the explain, then you strike it out.
On Thu, Apr 13, 2017 at 4:01 PM, Markus Jelsma <markus.jel...@openindex.io> wrote: > Hi - There is no such feature out-of-the-box in Solr. But you probably > could modify a highlighter implementation to return this information, the > highlighter is the component that comes closest to that feature. > > Regards, > Markus > > > > -----Original message----- > > From:Nilesh Kamani <nilesh.kam...@gmail.com> > > Sent: Thursday 13th April 2017 21:52 > > To: solr-user@lucene.apache.org > > Subject: Re: keywords not found - google like feature > > > > Here is the example. > > https://www.google.ca/webhp?sourceid=chrome-instant&ion=1& > espv=2&ie=UTF-8#safe=off&q=solr+spring+trump > > > > You will see this under search results. Missing: trump > > > > I am not asking for visual representation of such feature. > > Is there anyway solr is returning such info in response ? > > My client has this specific requirements that when he searches he wants > to > > know what keywords were not found in results. > > > > > > > > > > On Thu, Apr 13, 2017 at 3:34 PM, Alexandre Rafalovitch < > arafa...@gmail.com> > > wrote: > > > > > Are you asking visual representation or an actual feature. Because if > > > all your keywords/clauses are optional (default SHOULD) then Solr > > > automatically tries to match maximum number of them and then less and > > > less. So, if all words do not match, it will return results that match > > > less number of words. > > > > > > And words not-matched is effectively your strike-through negative > > > space. You can probably recover that from debug info, though it will > > > be not pretty and perhaps a bit slower. > > > > > > The real issue here is ranking. Does Google do something special with > > > ranking when they do strike through. Do they do some grouping and > > > ranking within groups, not just a global one? > > > > > > The biggest question is - of course - what is your business - as > > > opposed to look-alike - objective. Because explaining your needs > > > through a similarity with other product's secret implementation is a > > > long way to get there. Too much precision loss in each explanation > > > round. > > > > > > Regards, > > > Alex. > > > ---- > > > http://www.solr-start.com/ - Resources for Solr users, new and > experienced > > > > > > > > > On 13 April 2017 at 20:49, Nilesh Kamani <nilesh.kam...@gmail.com> > wrote: > > > > Hello All, > > > > > > > > When we search google, sometimes google returns results with mention > of > > > > keywords not found (mentioned as strike-through) > > > > > > > > Does Solr provide such feature ? > > > > > > > > > > > > Thanks, > > > > Nilesh Kamani > > > > > >