Class DocumentSelectionConverter


  • public class DocumentSelectionConverter
    extends java.lang.Object
    Author:
    Ulf Lilleengen
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.