Lucene.Net 1.9.1 Class Library

QueryParser.Parse Method (String, String, Analyzer)

Parses a query string, returning a {@link Lucene.Net.search.Query}.

public static Query Parse(
   string query,
   string field,
   Analyzer analyzer
);

Parameters

query
the query string to be parsed.
field
the default field for query terms.
analyzer
used to find terms in the query text.

See Also

QueryParser Class | Lucene.Net.QueryParsers Namespace | QueryParser.Parse Overload List