Re: query bag of word with negation

2018-04-22 Thread Erick Erickson
Queries of the form *some* can be _quite_ expensive, make sure you test on a realistic corpus. ngrams are often used to solve that problem. If you mean *some then you may want to include ReverseWildcardFilterFactory Best, Erick On Sun, Apr 22, 2018 at 12:33 PM, Nicolas Paris wrote: > Hello Mar

Re: query bag of word with negation

2018-04-22 Thread Nicolas Paris
Hello Markus Thanks ! The ComplexPhraseQueryParser syntax: q={!complexphrase inOrder=false}collector:"wonderful pizza -peperoni"~5 answers my needs. BTW, Apparently it accepts both leading/ending wildcards, that's look powerful feature. Any chance it would support the "sow=false" in order to co

Re: query bag of word with negation

2018-04-22 Thread Nicolas Paris
1. Query terms containing other than just letters or digits may be placed >> within double quotes so that those other characters do not separate a term >> into many terms. A dot (period) and white space are neither letter nor >> digit. Examples: "Now is the time for all good men" (spaces, quote

RE: query bag of word with negation

2018-04-22 Thread Markus Jelsma
Hello Nicolas, Yes you can! Check out ComplexPhaseQParser https://lucene.apache.org/solr/guide/6_6/other-parsers.html#OtherParsers-ComplexPhraseQueryParser Regards, Markus -Original message- > From:Nicolas Paris > Sent: Sunday 22nd April 2018 20:04 > To: solr-user@lucene.apache.org

Re: query bag of word with negation

2018-04-22 Thread Joe Doupnik
On 22/04/2018 19:26, Joe Doupnik wrote: On 22/04/2018 19:04, Nicolas Paris wrote: Hello I wonder if there is a plain text query syntax to say: give me all document that match: wonderful pizza NOT peperoni all those in a 5 distance word bag then pizza are wonderful -> would match I made a won

Re: query bag of word with negation

2018-04-22 Thread Joe Doupnik
On 22/04/2018 19:04, Nicolas Paris wrote: Hello I wonder if there is a plain text query syntax to say: give me all document that match: wonderful pizza NOT peperoni all those in a 5 distance word bag then pizza are wonderful -> would match I made a wonderful pasta and pizza -> would match Pep