You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Cristian Lorenzetto <cr...@gmail.com> on 2017/09/30 09:53:12 UTC

Prefix field name search

Hi
It there a way for searching all the documents where the field name starts
with "ABC"   and value is Y?

RE: Prefix field name search

Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi,

No, you must lookup the fields first and create separate TermQuery for all of them. It may be helpful to use LeafReader methods to discover field names.

Uwe

-----
Uwe Schindler
Achterdiek 19, D-28357 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de

> -----Original Message-----
> From: Cristian Lorenzetto [mailto:cristian.lorenzetto@gmail.com]
> Sent: Saturday, September 30, 2017 11:53 AM
> To: Lucene Users <ja...@lucene.apache.org>
> Subject: Prefix field name search
> 
> Hi
> It there a way for searching all the documents where the field name starts
> with "ABC"   and value is Y?


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