Alex Rivera | Logout

In lucene.net can we search for a content without giving field name..and it will search in all fields that are indexed?

Asked 2009-07-27T06:52:51.443
13

In lucene.net can we search for a content without giving field name..and it will search in all fields that are indexed.

Edit
Report

1 Answer

1

Use MultiFieldQueryParser to parse your queries, and provide it with a array of the field names you want searched.

The query doesn't need any special syntax. If your query is "cat hat" it will search all the specified fields for either of these terms. If your default operator is AND, it will require that each term be found in at least one field.

answered 2009-07-30T13:36:10.997

Your Answer