RE: How to implement NOTIN operator with Solr

2019-11-19 Thread Raboah, Avi
It's working!!! thanks a lot :) -Original Message- From: Emir Arnautović [mailto:emir.arnauto...@sematext.com] Sent: Tuesday, November 19, 2019 2:54 PM To: solr-user@lucene.apache.org Subject: Re: How to implement NOTIN operator with Solr Right - didn’t read all your examples

Re: How to implement NOTIN operator with Solr

2019-11-19 Thread Emir Arnautović
ene.apache.org > Subject: Re: How to implement NOTIN operator with Solr > > Hi Avi, > There are span queries, but in this case you don’t need it. It is enough to > simply filter out documents that are with “credit card”. Your query can be > something like > +text:credit

Re: How to implement NOTIN operator with Solr

2019-11-19 Thread Alexandre Rafalovitch
19 Nov 2019 at 05:08, Raboah, Avi wrote: > > In that case I got only doc1 > > -Original Message- > From: Emir Arnautović [mailto:emir.arnauto...@sematext.com] > Sent: Tuesday, November 19, 2019 11:51 AM > To: solr-user@lucene.apache.org > Subject: Re: How to impleme

RE: How to implement NOTIN operator with Solr

2019-11-19 Thread Raboah, Avi
In that case I got only doc1 -Original Message- From: Emir Arnautović [mailto:emir.arnauto...@sematext.com] Sent: Tuesday, November 19, 2019 11:51 AM To: solr-user@lucene.apache.org Subject: Re: How to implement NOTIN operator with Solr Hi Avi, There are span queries, but in this case

Re: How to implement NOTIN operator with Solr

2019-11-19 Thread Emir Arnautović
Hi Avi, There are span queries, but in this case you don’t need it. It is enough to simply filter out documents that are with “credit card”. Your query can be something like +text:credit -text:”credit card” If you prefer using boolean operators, you can write it as: text:credit AND NOT text:

Re: How to implement NOTIN operator with Solr

2019-11-19 Thread Vincenzo D'Amore
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:

How to implement NOTIN operator with Solr

2019-11-19 Thread Raboah, Avi
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