ajsie
ajsie

Reputation: 79666

Query any field in Lucene?

I tend to query for a specific field, eg.

title:*The Right Way* AND text:*The Right Way*

Is there a way to query The Right Way in any field I cannot no in advance?

Upvotes: 1

Views: 340

Answers (1)

Parvin Gasimzade
Parvin Gasimzade

Reputation: 26012

You have to parse a query using MultiFieldQueryParser or you can create a field which concatenates the content you would like to search and search only that field.

Upvotes: 2

Related Questions