This is a tricky problem, you’re trying to handle the meani using the words. A 
simple solution could be apply a synonym filter that convert “credit card” in 
two terms: “creditcard” and “card”. In this way searching credit will not match 
any term.

Ciao,
Vincenzo

--
mobile: 3498513251
skype: free.dev

> On 19 Nov 2019, at 10:30, Raboah, Avi <avi.rab...@verint.com> wrote:
> 
> I am trying to find the documents which hit this example:
> 
> q=text:"credit" NOTIN "credit card"
> 
> for that query I want to get all the documents which contain the term 
> "credit" but not as part of the phrase "credit card".
> 
> so:
> 
> 1.     I don't want to get the documents which include just "credit card".
> 
> 2.     I want to get the documents which include just "credit".
> 
> 3.     I want to get the documents which include "credit" but not as part of 
> credit card.
> 
> 
> 
> for example:
> 
> doc1 text: "I want to buy with my credit in my card"
> 
> doc2 text: "I want to buy with my credit in my credit card"
> 
> doc3 text: "I want to buy with my credit card"
> 
> The documents should be returned:
> 
> doc1, doc2
> 
> I can't find nothing about NOTIN operator implementation in SOLR docs.
> 
> 
> 
> This electronic message may contain proprietary and confidential information 
> of Verint Systems Inc., its affiliates and/or subsidiaries. The information 
> is intended to be for the use of the individual(s) or entity(ies) named 
> above. If you are not the intended recipient (or authorized to receive this 
> e-mail for the intended recipient), you may not use, copy, disclose or 
> distribute to anyone this message or any information contained in this 
> message. If you have received this electronic message in error, please notify 
> us by replying to this e-mail.

Reply via email to