Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Retrieve fields that are not empty

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


mored at gmx

Feb 11, 2010, 8:29 AM

Post #1 of 2 (559 views)
Permalink
Retrieve fields that are not empty

Hello,

is there a way query syntax fo rretrieving fields which have a value?
Something like myfield:NOT EMPTY. I searched the lucene docu, but didn´t
found anything for this issue.

Thanks in advance.

chris
--
View this message in context: http://old.nabble.com/Retrieve-fields-that-are-not-empty-tp27550134p27550134.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


uwe at thetaphi

Feb 11, 2010, 8:32 AM

Post #2 of 2 (533 views)
Permalink
RE: Retrieve fields that are not empty [In reply to]

Hi Chris,

its only possible with TermRangeQuery/NumericRangeQuery (depending on data type, corresponding filters can also be used) with both ends null. E.g., Solr does it that way.

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe [at] thetaphi


> -----Original Message-----
> From: mored [mailto:mored [at] gmx]
> Sent: Thursday, February 11, 2010 5:29 PM
> To: java-user [at] lucene
> Subject: Retrieve fields that are not empty
>
>
> Hello,
>
> is there a way query syntax fo rretrieving fields which have a value?
> Something like myfield:NOT EMPTY. I searched the lucene docu, but
> didn´t
> found anything for this issue.
>
> Thanks in advance.
>
> chris
> --
> View this message in context: http://old.nabble.com/Retrieve-fields-
> that-are-not-empty-tp27550134p27550134.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.