|
| DefaultSimilarity () |
|
virtual | ~DefaultSimilarity () |
|
virtual String | getClassName () |
|
boost::shared_ptr< DefaultSimilarity > | shared_from_this () |
|
virtual double | computeNorm (const String &fieldName, const FieldInvertStatePtr &state) |
| Implemented as state->getBoost() * lengthNorm(numTerms), where numTerms is FieldInvertState#getLength() if setDiscountOverlaps is false, else it's FieldInvertState#getLength() - FieldInvertState#getNumOverlap() .
|
|
virtual double | lengthNorm (const String &fieldName, int32_t numTokens) |
| Implemented as 1 / sqrt(numTerms).
|
|
virtual double | queryNorm (double sumOfSquaredWeights) |
| Implemented as 1 / sqrt(sumOfSquaredWeights).
|
|
virtual double | tf (double freq) |
| Implemented as sqrt(freq).
|
|
virtual double | sloppyFreq (int32_t distance) |
| Implemented as 1 / (distance + 1).
|
|
virtual double | idf (int32_t docFreq, int32_t numDocs) |
| Implemented as log(numDocs / (docFreq + 1)) + 1.
|
|
virtual double | coord (int32_t overlap, int32_t maxOverlap) |
| Implemented as overlap / maxOverlap.
|
|
void | setDiscountOverlaps (bool v) |
| Determines whether overlap tokens (Tokens with 0 position increment) are ignored when computing norm. By default this is false, meaning overlap tokens are counted just like non-overlap tokens.
|
|
bool | getDiscountOverlaps () |
|
| Similarity () |
|
virtual | ~Similarity () |
|
boost::shared_ptr< Similarity > | shared_from_this () |
|
virtual double | tf (int32_t freq) |
| Computes a score factor based on a term or phrase's frequency in a document. This value is multiplied by the idf(int32_t, int32_t) factor for each term in the query and these products are then summed to form the initial score for a document.
|
|
virtual IDFExplanationPtr | idfExplain (const TermPtr &term, const SearcherPtr &searcher) |
| Computes a score factor for a simple term and returns an explanation for that score factor.
|
|
virtual IDFExplanationPtr | idfExplain (Collection< TermPtr > terms, const SearcherPtr &searcher) |
| Computes a score factor for a phrase.
|
|
virtual double | scorePayload (int32_t docId, const String &fieldName, int32_t start, int32_t end, ByteArray payload, int32_t offset, int32_t length) |
| Calculate a scoring factor based on the data in the payload. Overriding implementations are responsible for interpreting what is in the payload. Lucene makes no assumptions about what is in the byte array.
|
|
virtual | ~LuceneObject () |
|
virtual void | initialize () |
| Called directly after instantiation to create objects that depend on this object being fully constructed.
|
|
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
| Return clone of this object.
|
|
virtual int32_t | hashCode () |
| Return hash code for this object.
|
|
virtual bool | equals (const LuceneObjectPtr &other) |
| Return whether two objects are equal.
|
|
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
| Compare two objects.
|
|
virtual String | toString () |
| Returns a string representation of the object.
|
|
virtual | ~LuceneSync () |
|
virtual SynchronizePtr | getSync () |
| Return this object synchronize lock.
|
|
virtual LuceneSignalPtr | getSignal () |
| Return this object signal.
|
|
virtual void | lock (int32_t timeout=0) |
| Lock this object using an optional timeout.
|
|
virtual void | unlock () |
| Unlock this object.
|
|
virtual bool | holdsLock () |
| Returns true if this object is currently locked by current thread.
|
|
virtual void | wait (int32_t timeout=0) |
| Wait for signal using an optional timeout.
|
|
virtual void | notifyAll () |
| Notify all threads waiting for signal.
|
|
Default scoring implementation.