Correct Alex. The use case is when provider searches on patient medical information for certain symptoms, the mentions likes "no headache" , "no blood loss", "not diabetic" should not show up in the search results.
Thanks -----Original Message----- From: Alessandro Benedetti [mailto:benedetti.ale...@gmail.com] Sent: Wednesday, November 23, 2016 8:22 AM To: solr-user@lucene.apache.org Subject: Re: negation search help Now that I read better, do you mean that at indexing time those negations must be recognized, in the way that they are no match ? Cheers On Wed, Nov 23, 2016 at 2:20 PM, Alessandro Benedetti < benedetti.ale...@gmail.com> wrote: > Hi Hem, > are you expecting Solr to parse your natural language query out of the > box ? > Are you using any custom query parser ? > > If not, you need to follow the lucene Syntax to define engative queries. > > And be careful to the edge cases [1] . > > Cheers > > [1] https://wiki.apache.org/solr/NegativeQueryProblems > > On Wed, Nov 23, 2016 at 1:54 PM, Hem Naidu <hem.na...@teschglobal.com. > invalid> wrote: > >> Alex >> >> Whenever the keywords or sentence followed by "no", "not", etc should >> be excluded from the search results. Does solr support this feature? >> >> Thanks >> >> >> Sent from my iPhone >> >> >> > On Nov 23, 2016, at 12:09 AM, Alexandre Rafalovitch >> > <arafa...@gmail.com> >> wrote: >> > >> > How do you _know_ it is not 'apparent' ? Is it because it is >> > preceded by the keyword 'no'? Just that keyword? At what maximum distance? >> > >> > Regards, >> > Alex >> > >> > On 23 Nov 2016 2:59 PM, "Hem Naidu" >> > <hem.na...@teschglobal.com.invalid> >> > wrote: >> > >> >> Gurus, >> >> >> >> I am new to Solr, I have a requirement to index entire pdf/word >> documents >> >> using Solr Tika. Which was successful and able to get the search >> results >> >> displayed. Now I need to fine tune the results or adjust index so >> >> the negative statements should be filtered out the results like my >> >> input >> text >> >> for index from the documents would be >> >> ----------------------------------- >> >> Fortunately no concurrent trauma was found In no apparent distress >> >> -------------------------------------- >> >> >> >> If user searches for concurrent trauma or distress the search >> >> engine >> should >> >> filter out the results as it not apparent symptom. >> >> >> >> Any help on whether Solr can do this? >> >> If so, do I need to adjust the index or build custom queries? >> >> >> >> Any help on this would be greatly appreciated ! >> >> >> >> Thanks >> >> >> >> >> >> >> > > > > -- > -------------------------- > > Benedetti Alessandro > Visiting card - http://about.me/alessandro_benedetti > Blog - http://alexbenedetti.blogspot.co.uk > > "Tyger, tyger burning bright > In the forests of the night, > What immortal hand or eye > Could frame thy fearful symmetry?" > > William Blake - Songs of Experience -1794 England > -- -------------------------- Benedetti Alessandro Visiting card - http://about.me/alessandro_benedetti Blog - http://alexbenedetti.blogspot.co.uk "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England