Class | EstraierPure::Condition |
In: |
estraierpure.rb
|
Parent: | Object |
Abstraction of search condition.
SURE | = | 1 << 0 | option: check every N-gram key | |
USUAL | = | 1 << 1 | option: check N-gram keys skipping by one | |
FAST | = | 1 << 2 | option: check N-gram keys skipping by two | |
AGITO | = | 1 << 3 | option: check N-gram keys skipping by three | |
NOIDF | = | 1 << 4 | option: without TF-IDF tuning | |
SIMPLE | = | 1 << 10 | option: with the simplified phrase | |
ROUGH | = | 1 << 11 | option: with the rough phrase | |
UNION | = | 1 << 15 | option: with the union phrase | |
ISECT | = | 1 << 16 | option: with the intersection phrase |
Add an expression for an attribute. `expr’ specifies an expression for an attribute. The return value is always `nil’.
Get the attribute distinction filter. The return value is the name of the distinct attribute.
Set the attribute distinction filter. `name’ specifies the name of an attribute to be distinct. The return value is always `nil’.
Set the maximum number of retrieval. `max’ specifies the maximum number of retrieval. By default, the number of retrieval is not limited. The return value is always `nil’.
Set options of retrieval. `options’ specifies options: `Condition::SURE’ specifies that it checks every N-gram key, `Condition::USU’, which is the default, specifies that it checks N-gram keys with skipping one key, `Condition::FAST’ skips two keys, `Condition::AGITO’ skips three keys, `Condition::NOIDF’ specifies not to perform TF-IDF tuning, `Condition::SIMPLE’ specifies to use simplified phrase, `Condition::ROUGH’ specifies to use rough phrase, `Condition.UNION’ specifies to use union phrase, `Condition.ISECT’ specifies to use intersection phrase. Each option can be specified at the same time by bitwise or. If keys are skipped, though search speed is improved, the relevance ratio grows less. The return value is always `nil’.
Set the number of skipped documents. `skip’ specifies the number of documents to be skipped in the search result. The return value is always `nil’.