Re: Questions about the Lucene query language

2014-10-28 Thread Prad Nelluru
Thanks, Jack!

From: Jack Krupansky 
Sent: Monday, October 27, 2014 8:41 PM
To: java-user@lucene.apache.org
Subject: Re: Questions about the Lucene query language

Pure negative queries are not supported, but all you need to do is include
*:*, which translates into MatchAllDocsQuery.

"hello dolly" is the same as "hello dolly"~0

-- Jack Krupansky

-Original Message-
From: Prad Nelluru
Sent: Monday, October 27, 2014 8:57 PM
To: java-user@lucene.apache.org
Subject: Questions about the Lucene query language

Hi everyone,

I'm trying to understand how to use the Lucene query language.


1.   Does Lucene support negative phrase queries like -"hello dolly" ?
Or do I need to subtract from some other term like: joy -"hello dolly" ? My
intention is to find all documents that do not have the words "hello" and
"dolly" adjacent to each other.

2.   And also, does "hello dolly" mean the same thing as the proximity
query "hello dolly"~1 ?

Thanks!
Prad


-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org


-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Re: Questions about the Lucene query language

2014-10-27 Thread Jack Krupansky
Pure negative queries are not supported, but all you need to do is include 
*:*, which translates into MatchAllDocsQuery.


"hello dolly" is the same as "hello dolly"~0

-- Jack Krupansky

-Original Message- 
From: Prad Nelluru

Sent: Monday, October 27, 2014 8:57 PM
To: java-user@lucene.apache.org
Subject: Questions about the Lucene query language

Hi everyone,

I'm trying to understand how to use the Lucene query language.


1.   Does Lucene support negative phrase queries like -"hello dolly" ? 
Or do I need to subtract from some other term like: joy -"hello dolly" ? My 
intention is to find all documents that do not have the words "hello" and 
"dolly" adjacent to each other.


2.   And also, does "hello dolly" mean the same thing as the proximity 
query "hello dolly"~1 ?


Thanks!
Prad 



-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Questions about the Lucene query language

2014-10-27 Thread Prad Nelluru
Hi everyone,

I'm trying to understand how to use the Lucene query language.


1.   Does Lucene support negative phrase queries like -"hello dolly" ? Or 
do I need to subtract from some other term like: joy -"hello dolly" ? My 
intention is to find all documents that do not have the words "hello" and 
"dolly" adjacent to each other.

2.   And also, does "hello dolly" mean the same thing as the proximity 
query "hello dolly"~1 ?

Thanks!
Prad