Re: invert terms in search with exact match

2011-03-24 Thread Ahmet Arslan
Then you need to write some custom code for that. Lucene in Action Book (second edition, section 6.3.4) has an example for Translating PhraseQuery to SpanNearQuery. Just use false for the third parameter in SpanNearQuery's ctor. You can plug https://issues.apache.org/jira/browse/SOLR-1604 to

Re: invert terms in search with exact match

2011-03-24 Thread Gastone Penzo
yes sorry i made a mistake title(my AND love AND darling) all three words have to match. the problem is always i don't want results with other words. 2011/3/24 Dario Rigolin > On Thursday, March 24, 2011 03:52:31 pm Gastone Penzo wrote: > > > > > title1: my love darling > > title2: my darlin

Re: invert terms in search with exact match

2011-03-24 Thread Dario Rigolin
On Thursday, March 24, 2011 03:52:31 pm Gastone Penzo wrote: > > title1: my love darling > title2: my darling love > title3: darling my love > title4: love my darling Sorry but simply search for: title:( my OR love OR darling) If you have default operator OR you don't need to put OR on the q

Re: invert terms in search with exact match

2011-03-24 Thread Jonathan Rochkind
You can use query slop as others have said to find documents with "my" and "love" right next to each other, in any order. And I think query slop can probably work for three or more words too to do that. But it won't find files with ONLY those words in it. For instance "my love"~2 will still ma

Re: invert terms in search with exact match

2011-03-24 Thread Gastone Penzo
no beacuse i don't know the words i want to ignore.. and i don't want use dismax. i have to use standard handler. the problem is very simple. i want to recive only documents that have in title field ONLY the words i search, in any order. if i search "my love darling", i want solr returns me these

Re: invert terms in search with exact match

2011-03-24 Thread Bill Bell
Yes create qt with dismax and qf on field that has query stopwords for the words you want to ignore. Bill Bell Sent from mobile On Mar 24, 2011, at 7:58 AM, Gastone Penzo wrote: > Hi, > is it possible with standard query search (not dismax) to have > exact matches that allow any terms order?

Re: invert terms in search with exact match

2011-03-24 Thread Gastone Penzo
Hi Tommaso, thank you for the answer but the problem in your solution is that solr returns to me also docs with other words. For example: my love is the world i want to exclude the other words. it must give to me only docs with my love or love my. stop Thank you 2011/3/24 Tommaso Teofili > Hi

Re: invert terms in search with exact match

2011-03-24 Thread Tommaso Teofili
Hi Gastone, I think you should use proximity search as described here in Lucene query syntax page [1]. So searching for "my love"~2 should work for your use case. Cheers, Tommaso [1] : http://lucene.apache.org/java/2_9_3/queryparsersyntax.html#ProximitySearches 2011/3/24 Gastone Penzo > Hi, >

Re: invert terms in search with exact match

2011-03-24 Thread Ahmet Arslan
--- On Thu, 3/24/11, Gastone Penzo wrote: > From: Gastone Penzo > Subject: invert terms in search with exact match > To: solr-user@lucene.apache.org > Date: Thursday, March 24, 2011, 3:58 PM > Hi, > is it possible with standard query search (not dismax) to > have >

invert terms in search with exact match

2011-03-24 Thread Gastone Penzo
Hi, is it possible with standard query search (not dismax) to have exact matches that allow any terms order? for example: if i search "my love" i would solr gives to me docs with - my love - love my it's easy: q=title:(my AND love) the problem is it returns also docs with "my love is my dog"