Exemplo n.º 1
0
 /// <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);
Exemplo n.º 2
0
 public override Query Parse(ExtensionQuery components)
 {
     return(new TermQuery(new Term(components.Field, components.RawQueryString)));
 }
Exemplo n.º 3
0
 /// <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);
Exemplo n.º 4
0
 public override Query Parse(ExtensionQuery components)
 {
     return new TermQuery(new Term(components.Field, components.RawQueryString));
 }