Package com.yahoo.vespa.model.search
Class DocumentSelectionConverter
- java.lang.Object
-
- com.yahoo.vespa.model.search.DocumentSelectionConverter
-
public class DocumentSelectionConverter extends java.lang.Object
- Author:
- Ulf Lilleengen
-
-
Constructor Summary
Constructors Constructor Description DocumentSelectionConverter(java.lang.String selection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInvertedQuery(java.lang.String documentType)
Transforms the selection into an inverted search query.java.lang.String
getQuery(java.lang.String documentType)
Transforms the selection into a search query.
-
-
-
Constructor Detail
-
DocumentSelectionConverter
public DocumentSelectionConverter(java.lang.String selection) throws com.yahoo.document.select.parser.ParseException, java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
- Throws:
com.yahoo.document.select.parser.ParseException
java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
-
-
Method Detail
-
getQuery
public java.lang.String getQuery(java.lang.String documentType)
Transforms the selection into a search query.- Returns:
- a search query representing the selection
-
getInvertedQuery
public java.lang.String getInvertedQuery(java.lang.String documentType)
Transforms the selection into an inverted search query.- Returns:
- a search query representing the selection
-
-