Class JackrabbitTermQuery.JackrabbitTermWeight

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.lucene.search.Searcher searcher
      The searcher for this weight.
    • Constructor Summary

      Constructors 
      Constructor Description
      JackrabbitTermWeight​(org.apache.lucene.search.Searcher searcher, org.apache.lucene.search.Weight weight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.lucene.search.Scorer createScorer​(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)
      Abstract factory method for crating a scorer instance for the specified reader.
      org.apache.lucene.search.Explanation explain​(org.apache.lucene.index.IndexReader reader, int doc)
      org.apache.lucene.search.Query getQuery()
      float getValue()
      void normalize​(float norm)
      org.apache.lucene.search.Scorer scorer​(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)
      float sumOfSquaredWeights()
      • Methods inherited from class org.apache.lucene.search.Weight

        scoresDocsOutOfOrder
    • Field Detail

      • searcher

        protected final org.apache.lucene.search.Searcher searcher
        The searcher for this weight.
    • Constructor Detail

      • JackrabbitTermWeight

        public JackrabbitTermWeight​(org.apache.lucene.search.Searcher searcher,
                                    org.apache.lucene.search.Weight weight)
    • Method Detail

      • createScorer

        protected org.apache.lucene.search.Scorer createScorer​(org.apache.lucene.index.IndexReader reader,
                                                               boolean scoreDocsInOrder,
                                                               boolean topScorer)
                                                        throws IOException
        Abstract factory method for crating a scorer instance for the specified reader.
        Parameters:
        reader - the index reader the created scorer instance should use
        Returns:
        the scorer instance
        Throws:
        IOException - if an error occurs while reading from the index
      • getQuery

        public org.apache.lucene.search.Query getQuery()
        Specified by:
        getQuery in class org.apache.lucene.search.Weight
      • getValue

        public float getValue()
        Specified by:
        getValue in class org.apache.lucene.search.Weight
      • sumOfSquaredWeights

        public float sumOfSquaredWeights()
                                  throws IOException
        Specified by:
        sumOfSquaredWeights in class org.apache.lucene.search.Weight
        Throws:
        IOException
      • normalize

        public void normalize​(float norm)
        Specified by:
        normalize in class org.apache.lucene.search.Weight
      • explain

        public org.apache.lucene.search.Explanation explain​(org.apache.lucene.index.IndexReader reader,
                                                            int doc)
                                                     throws IOException
        Specified by:
        explain in class org.apache.lucene.search.Weight
        Throws:
        IOException
      • scorer

        public org.apache.lucene.search.Scorer scorer​(org.apache.lucene.index.IndexReader reader,
                                                      boolean scoreDocsInOrder,
                                                      boolean topScorer)
                                               throws IOException

        Returns a MultiScorer if the passed reader is of type MultiIndexReader.

        Specified by:
        scorer in class org.apache.lucene.search.Weight
        Throws:
        IOException