lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Wildcards in field name
Date Tue, 15 May 2012 14:20:31 GMT
No and no.  MultiFieldQueryParser is the only thing that comes to mind
as being remotely close but you have to tell it the field names.  I
guess you could use IndexReader.getFieldNames(...) to find indexed
fields and pass the output from that through a wildcard regexp and
feed the output from that into MultiFieldQueryParser.  Good luck.  I
always prefer to use a "contents" field that holds all searchable
data.


--
Ian.


On Tue, May 15, 2012 at 3:02 PM, Joachim Andersson
<joachim.andersson@ldc.lu.se> wrote:
> Is it possible todo a query with wildcards in field name?
>
> is there any QueryParser that handles wildcards in fields names?
>
>
> //Joachim
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Wildcards-in-field-name-tp3983865.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

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


Mime
View raw message