congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LongValuesSource.needsScores
Code IndexAdd Tabnine to your IDE (free)

How to use
needsScores
method
in
org.apache.lucene.search.LongValuesSource

Best Java code snippets using org.apache.lucene.search.LongValuesSource.needsScores (Showing top 5 results out of 315)

origin: org.apache.lucene/lucene-core

@Override
public boolean needsScores() {
 return producer.needsScores();
}
origin: org.apache.lucene/lucene-core

@Override
public boolean needsScores() {
 return inner.needsScores();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public boolean needsScores() {
 return producer.needsScores();
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

@Override
public boolean needsScores() {
 return inner.needsScores();
}
origin: org.apache.lucene/lucene-sandbox

/**
 * Sole constructor.
 * @param queries Sub queries to match.
 * @param minimumNumberMatch Per-document long value that records how many queries
 *                           should match. Values that are less than 1 are treated
 *                           like <tt>1</tt>: only documents that have at least one
 *                           matching clause will be considered matches. Documents
 *                           that do not have a value for <tt>minimumNumberMatch</tt>
 *                           do not match.
 */
public CoveringQuery(Collection<Query> queries, LongValuesSource minimumNumberMatch) {
 if (queries.size() > BooleanQuery.getMaxClauseCount()) {
  throw new BooleanQuery.TooManyClauses();
 }
 if (minimumNumberMatch.needsScores()) {
  throw new IllegalArgumentException("The minimum number of matches may not depend on the score.");
 }
 this.queries = new Multiset<>();
 this.queries.addAll(queries);
 this.minimumNumberMatch = Objects.requireNonNull(minimumNumberMatch);
 this.hashCode = computeHashCode();
}
org.apache.lucene.searchLongValuesSourceneedsScores

Javadoc

Return true if document scores are needed to calculate values

Popular methods of LongValuesSource

  • getValues
    Returns a LongValues instance for the passed-in LeafReaderContext and scores If scores are not neede
  • isCacheable
  • fromLongField
    Creates a LongValuesSource that wraps a long-valued field
  • rewrite
    Return a LongValuesSource specialised for the given IndexSearcher Implementations should assume that
  • toString
  • fromIntField
    Creates a LongValuesSource that wraps an int-valued field
  • toDoubleValuesSource
    Convert to a DoubleValuesSource by casting long values to doubles
  • equals
  • hashCode

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Table (org.hibernate.mapping)
    A relational table
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now