/// <summary> /// Processes the given <see cref="ExtensionQuery"/> and returns a corresponding /// <see cref="Query"/> instance. Subclasses must either return a <see cref="Query"/> /// instance or raise a <see cref="ParseException"/>. This method must not return /// <code>null</code>. /// </summary> /// <param name="query">the extension query</param> /// <returns>a new query instance</returns> /// <exception cref="ParseException">if the query can not be parsed.</exception> public abstract Query Parse(ExtensionQuery query);
public override Query Parse(ExtensionQuery components) { return(new TermQuery(new Term(components.Field, components.RawQueryString))); }
public override Query Parse(ExtensionQuery components) { return new TermQuery(new Term(components.Field, components.RawQueryString)); }