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

Mailing List Archive: Lucene: Java-User

Wildcards in field name

 

 

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


joachim.andersson at ldc

May 15, 2012, 7:02 AM

Post #1 of 2 (129 views)
Permalink
Wildcards in field name

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 [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


ian.lea at gmail

May 15, 2012, 7:20 AM

Post #2 of 2 (126 views)
Permalink
Re: Wildcards in field name [In reply to]

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 [at] ldc> 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 [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.