Codota Logo
SortField.needsScores
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain SortField
private void myMethod () {
SortField s =
  • Codota IconString field;SortField.Type type;new SortField(field, type, reverse)
  • Codota IconSort sort;sort.getSort()
  • Codota IconIndexSearcher searcher;fields[i].rewrite(searcher)
  • Smart code suggestions by Codota
}
origin: org.apache.lucene/lucene-core

/** Returns true if the relevance score is needed to sort documents. */
public boolean needsScores() {
 for (SortField sortField : fields) {
  if (sortField.needsScores()) {
   return true;
  }
 }
 return false;
}
origin: org.infinispan/infinispan-embedded-query

/** Returns true if the relevance score is needed to sort documents. */
public boolean needsScores() {
 for (SortField sortField : fields) {
  if (sortField.needsScores()) {
   return true;
  }
 }
 return false;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

/** Returns true if the relevance score is needed to sort documents. */
public boolean needsScores() {
 for (SortField sortField : fields) {
  if (sortField.needsScores()) {
   return true;
  }
 }
 return false;
}
origin: harbby/presto-connectors

/** Returns true if the relevance score is needed to sort documents. */
public boolean needsScores() {
 for (SortField sortField : fields) {
  if (sortField.needsScores()) {
   return true;
  }
 }
 return false;
}
origin: org.codelibs.elasticsearch.module/lang-expression

  throw new ParseException("Field [" + fieldname + "] must be numeric, date, or geopoint", 5);
needsScores |= valueSource.getSortField(false).needsScores();
bindings.add(variable, valueSource.asDoubleValuesSource());
org.apache.lucene.searchSortFieldneedsScores

Javadoc

Whether the relevance score is needed to sort documents.

Popular methods of SortField

  • <init>
    Creates a sort, possibly in reverse, by terms in the given field where the type of term value is det
  • getField
    Returns the name of the field. Could return null if the sort is by SCORE or DOC.
  • getReverse
    Returns whether the sort should be reversed.
  • getType
    Returns the type of contents in the field.
  • setMissingValue
    Set the value to use for documents that don't have a value.
  • equals
    Returns true if o is equal to this. If a FieldComparatorSource was provided, it must properly implem
  • getComparator
    Returns the FieldComparator to use for sorting.
  • getComparatorSource
    Returns the FieldComparatorSource used for custom sorting
  • getMissingValue
    Return the value to use for documents that don't have a value. A value of null indicates that defaul
  • toString
  • hashCode
    Returns a hash code for this SortField instance. If a FieldComparatorSource was provided, it must pr
  • getFactory
  • hashCode,
  • getFactory,
  • getLocale,
  • initFieldType,
  • rewrite

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JTextField (javax.swing)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now