lux.query
Class SpanMatchAll
java.lang.Object
lux.query.ParseableQuery
lux.query.SpanMatchAll
public class SpanMatchAll
- extends ParseableQuery
This query exists only to serve as a placeholder in an intermediate query compilation
phase. It prints out a query designed to match all documents in surround query parser language;
because there is no built-in match-all query in that dialect, it prints term query matching the start
of a path in the lux_path field, which always begins with a fixed token: {}.
TODO: determine how much efficiency is lost by using a SpanTerm query rather than a real MatchAllDocsQuery.
SpanMatchAll
public SpanMatchAll()
getInstance
public static final SpanMatchAll getInstance()
toXmlNode
public ElementConstructor toXmlNode(String field,
IndexConfiguration config)
- Specified by:
toXmlNode in class ParseableQuery
- Parameters:
field - the prevailing field in the query's surrounding context.config - the index configuration
- Returns:
- an xml object representation of the query, in a format suitable for parsing by one the Lucene XML Query Parser
toQueryString
public String toQueryString(String defaultField,
IndexConfiguration config)
- Specified by:
toQueryString in class ParseableQuery
- Parameters:
defaultField - the prevailing field in the query's surrounding context.config - the index configuration
- Returns:
- a String representation of the query, in the Surround Query Parser dialect
Copyright © 2013. All Rights Reserved.