org.apache.lucene.search

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » lucene connector » org.apache.lucene.search 
org.apache.lucene.search
Java Source File NameTypeComment
BaseTestRangeFilter.javaClass
BooleanClause.javaClass A clause in a BooleanQuery.
BooleanFilter.javaClass A container Filter that allows Boolean composition of Filters.
BooleanFilterTest.javaClass
BooleanQuery.javaClass A Query that matches documents matching boolean combinations of other queries, e.g.
BooleanScorer.javaClass
BooleanScorer2.javaClass An alternative to BooleanScorer that also allows a minimum number of optional scorers that should match.
BoostingQuery.javaClass The BoostingQuery class can be used to effectively demote results that match a given query.
CachingSpanFilter.javaClass Wraps another SpanFilter's result and caches it.
CachingWrapperFilter.javaClass Wraps another filter's result and caches it.
CachingWrapperFilterHelper.javaClass A unit test helper class to test when the filter is getting cached and when it is not.
CheckHits.javaClass
ComplexExplanation.javaClass Expert: Describes the score computation for document and query, andcan distinguish a match independent of a positive value.
ConjunctionScorer.javaClass Scorer for conjunctions, sets of queries, all of which are required.
ConstantScoreQuery.javaClass A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.
ConstantScoreRangeQuery.javaClass A range query that returns a constant score equal to its boost for all documents in the range.

It does not have an upper bound on the number of clauses covered in the range.

If an endpoint is null, it is said to be "open". Either or both endpoints may be open.

DefaultSimilarity.javaClass Expert: Default scoring implementation.
DisjunctionMaxQuery.javaClass A query that generates the union of documents produced by its subqueries, and that scores each document with the maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries. This is useful when searching for a word in multiple fields with different boost factors (so that the fields cannot be combined equivalently into a single search field).
DisjunctionMaxScorer.javaClass The Scorer for DisjunctionMaxQuery's.
DisjunctionSumScorer.javaClass A Scorer for OR like queries, counterpart of ConjunctionScorer. This Scorer implements Scorer.skipTo(int) and uses skipTo() on the given Scorers.
DuplicateFilter.javaClass
DuplicateFilterTest.javaClass
ExactPhraseScorer.javaClass
Explanation.javaClass Expert: Describes the score computation for document and query.
ExtendedFieldCache.javaInterface
ExtendedFieldCacheImpl.javaClass
FieldCache.javaInterface Expert: Maintains caches of term values.
FieldCacheImpl.javaClass Expert: The default cache implementation, storing all values in memory.
FieldDoc.javaClass Expert: A ScoreDoc which also contains information about how to sort the referenced document.
FieldDocSortedHitQueue.javaClass Expert: Collects sorted results from Searchable's and collates them.
FieldSortedHitQueue.javaClass Expert: A hit queue for sorting by hits by terms in more than one field.
Filter.javaClass Abstract base class providing a mechanism to restrict searches to a subset of an index.
FilterClause.javaClass A Filter that wrapped with an indication of how that filter is used when composed with another filter.
FilteredQuery.javaClass A query that applies a filter to the results of another query.
FilteredTermEnum.javaClass Abstract class for enumerating a subset of all terms.
FilterManager.javaClass Filter caching singleton.
FuzzyLikeThisQuery.javaClass Fuzzifies ALL terms provided as strings and then picks the best n differentiating terms. In effect this mixes the behaviour of FuzzyQuery and MoreLikeThis but with special consideration of fuzzy scoring factors. This generally produces good results for queries where users may provide details in a number of fields and have no knowledge of boolean query syntax and also want a degree of fuzzy matching and a fast query. For each source term the fuzzy variants are held in a BooleanQuery with no coord factor (because we are not looking for matches on multiple variants in any one doc).
FuzzyQuery.javaClass Implements the fuzzy search query.
FuzzyTermEnum.javaClass Subclass of FilteredTermEnum for enumerating all terms that are similiar to the specified filter term.

Term enumerations are always ordered by Term.compareTo().

Hit.javaClass Wrapper used by HitIterator to provide a lazily loaded hit from Hits .
HitCollector.javaClass Lower-level search API.
HitIterator.javaClass An iterator over Hits that provides lazy fetching of each document. Hits.iterator returns an instance of this class.
HitQueue.javaClass
Hits.javaClass A ranked list of documents, used to hold search results.

Caution: Iterate only over the hits needed.

IndexSearcher.javaClass Implements search over a single IndexReader.

Applications usually need only call the inherited IndexSearcher.search(Query) or IndexSearcher.search(Query,Filter) methods.

MatchAllDocsQuery.javaClass A query that matches all documents.
MockFilter.javaClass
MultiPhraseQuery.javaClass MultiPhraseQuery is a generalized version of PhraseQuery, with an added method MultiPhraseQuery.add(Term[]) .
MultiSearcher.javaClass Implements search over a set of Searchables.
MultiTermQuery.javaClass A Query that matches documents containing a subset of terms provided by a FilteredTermEnum enumeration.

MultiTermQuery is not designed to be used by itself.
The reason being that it is not intialized with a FilteredTermEnum enumeration.

NonMatchingScorer.javaClass A scorer that matches no document at all.
ParallelMultiSearcher.javaClass Implements parallel search over a set of Searchables.
PhrasePositions.javaClass Position of a term in a document that takes into account the term offset within the phrase.
PhraseQuery.javaClass A Query that matches documents containing a particular sequence of terms.
PhraseQueue.javaClass
PhraseScorer.javaClass Expert: Scoring functionality for phrase queries.
A document is considered matching if it contains the phrase-query terms at "valid" positons.
PrefixFilter.javaClass
PrefixQuery.javaClass A Query that matches documents containing terms with a specified prefix.
Query.javaClass The abstract base class for queries.
QueryFilter.javaClass Constrains search results to only match those which also match a provided query.
QueryTermVector.javaClass
QueryUtils.javaClass
QueryWrapperFilter.javaClass Constrains search results to only match those which also match a provided query.
RangeFilter.javaClass A Filter that restricts search results to a range of values in a given field.
RangeQuery.javaClass A Query that matches documents within an exclusive range.
RemoteCachingWrapperFilter.javaClass Provides caching of Filter s themselves on the remote end of an RMI connection.
RemoteCachingWrapperFilterHelper.javaClass A unit test helper class to help with RemoteCachingWrapperFilter testing and assert that it is working correctly.
RemoteSearchable.javaClass A remote searchable implementation.
ReqExclScorer.javaClass A Scorer for queries with a required subscorer and an excluding (prohibited) subscorer.
ReqOptSumScorer.javaClass A Scorer for queries with a required part and an optional part.
SampleComparable.javaClass An example Comparable for use with the custom sort tests. It implements a comparable for "id" sort of values which consist of an alphanumeric part and a numeric part, such as:

ABC-123, A-1, A-7, A-100, B-99999

Such values cannot be sorted as strings, since A-100 needs to come after A-7.

It could be argued that the "ids" should be rewritten as A-0001, A-0100, etc.

ScoreDoc.javaClass Expert: Returned by low-level search implementations.
ScoreDocComparator.javaInterface Expert: Compares two ScoreDoc objects for sorting.
Scorer.javaClass Expert: Common scoring functionality for different types of queries.
Searchable.javaInterface The interface for search implementations.

Searchable is the abstract network protocol for searching.

Searcher.javaClass An abstract base class for search implementations. Implements the main search methods.

Note that you can only access Hits from a Searcher as long as it is not yet closed, otherwise an IOException will be thrown.

Similarity.javaClass Expert: Scoring API.

Subclasses implement search scoring.

The score of query q for document d correlates to the cosine-distance or dot-product between document and query vectors in a Vector Space Model (VSM) of Information Retrieval. A document whose vector is closer to the query vector in that model is scored higher. The score is computed as follows:

score(q,d)   =   coord(q,d)  ·  queryNorm(q)  ·  ( tf(t in d)  ·  idf(t)2  ·  t.getBoost() ·  norm(t,d) )
t in q

where

  1. tf(t in d) correlates to the term's frequency, defined as the number of times term t appears in the currently scored document d. Documents that have more occurrences of a given term receive a higher score. The default computation for tf(t in d) in org.apache.lucene.search.DefaultSimilarity.tf(float) DefaultSimilarity is:
     
    org.apache.lucene.search.DefaultSimilarity.tf(float) tf(t in d)   =   frequency½

     
  2. idf(t) stands for Inverse Document Frequency.
SimilarityDelegator.javaClass Expert: Delegating scoring implementation.
SingleDocTestFilter.javaClass
SloppyPhraseScorer.javaClass
Sort.javaClass Encapsulates sort criteria for returned hits.

The fields used to determine sort order must be carefully chosen. Documents must contain a single term in such a field, and the value of the term should indicate the document's relative position in a given sort order.

SortComparator.javaClass Abstract base class for sorting hits returned by a Query.

This class should only be used if the other SortField types (SCORE, DOC, STRING, INT, FLOAT) do not provide an adequate sorting.

SortComparatorSource.javaInterface Expert: returns a comparator for sorting ScoreDocs.
SortField.javaClass Stores information about how to sort documents by terms in an individual field.
SpanFilter.javaClass Abstract base class providing a mechanism to restrict searches to a subset of an index and also maintains and returns position information. This is useful if you want to compare the positions from a SpanQuery with the positions of items in a filter.
SpanFilterResult.javaClass The results of a SpanQueryFilter.
SpanQueryFilter.javaClass Constrains search results to only match those which also match a provided query.
TermQuery.javaClass A Query that matches documents containing a term.
TermScorer.javaClass Expert: A Scorer for documents matching a Term.
TermsFilter.javaClass Constructs a filter for docs matching any of the terms added to this class.
TestBoolean2.javaClass Test BooleanQuery2 against BooleanQuery by overriding the standard query parser.
TestBooleanMinShouldMatch.javaClass Test that BooleanQuery.setMinimumNumberShouldMatch works.
TestBooleanOr.javaClass Created on 2005.
TestBooleanPrefixQuery.javaClass
TestBooleanQuery.javaClass
TestBooleanScorer.javaClass
TestCachingWrapperFilter.javaClass
TestComplexExplanations.javaClass TestExplanations subclass that builds up super crazy complex queries on the assumption that if the explanations work out right for them, they should work for anything.
TestComplexExplanationsOfNonMatches.javaClass subclass of TestSimpleExplanations that verifies non matches.
TestConstantScoreRangeQuery.javaClass
TestCustomSearcherSort.javaClass Unit test for sorting code.
TestDateFilter.javaClass DateFilter JUnit tests.
TestDateSort.javaClass Test date sorting, i.e.
TestDisjunctionMaxQuery.javaClass Test of the DisjunctionMaxQuery.
TestDocBoost.javaClass Document boost unit test.
TestExplanations.javaClass Tests primative queries (ie: that rewrite to themselves) to insure they match the expected set of docs, and that the score of each match is equal to the value of the scores explanation.
TestExtendedFieldCache.javaClass
TestFilteredQuery.javaClass FilteredQuery JUnit tests.
TestFuzzyQuery.javaClass Tests FuzzyQuery .
TestMatchAllDocsQuery.javaClass Tests MatchAllDocsQuery.
TestMultiPhraseQuery.javaClass This class tests the MultiPhraseQuery class.
TestMultiSearcher.javaClass Tests MultiSearcher class.
TestMultiSearcherRanking.javaClass Tests MultiSearcher ranking, i.e.
TestMultiThreadTermVectors.javaClass
TestNot.javaClass Similarity unit test.
TestParallelMultiSearcher.javaClass
TestPhrasePrefixQuery.javaClass This class tests PhrasePrefixQuery class.
TestPhraseQuery.javaClass Tests PhraseQuery .
TestPositionIncrement.javaClass Term position unit test.
TestPrefixFilter.javaClass Tests PrefixFilter class.
TestPrefixQuery.javaClass Tests PrefixQuery class.
TestQueryTermVector.javaClass
TestRangeFilter.javaClass A basic 'positive' Unit test class for the RangeFilter class.

NOTE: at the moment, this class only tests for 'positive' results, it does not verify the results to ensure there are no 'false positives', nor does it adequately test 'negative' results.

TestRangeQuery.javaClass
TestRemoteCachingWrapperFilter.javaClass Tests that the index is cached on the searcher side of things.
TestRemoteSearchable.javaClass
TestScorerPerf.javaClass
TestSearchHitsWithDeletions.javaClass Test Hits searches with interleaved deletions.
TestSetNorm.javaClass Document boost unit test.
TestSimilarity.javaClass Similarity unit test.
TestSimpleExplanations.javaClass
TestSimpleExplanationsOfNonMatches.javaClass subclass of TestSimpleExplanations that verifies non matches.
TestSort.javaClass Unit tests for sorting code.
TestSpanQueryFilter.javaClass
TestTermScorer.javaClass
TestTermVectors.javaClass
TestThreadSafe.javaClass
TestWildcard.javaClass TestWildcard tests the '*' and '?' wildcard characters.
TopDocCollector.javaClass A HitCollector implementation that collects the top-scoring documents, returning them as a TopDocs .
TopDocs.javaClass Expert: Returned by low-level search implementations.
TopFieldDocCollector.javaClass A HitCollector implementation that collects the top-sorting documents, returning them as a TopFieldDocs .
TopFieldDocs.javaClass Expert: Returned by low-level sorted search implementations.
Weight.javaInterface Expert: Calculate query weights and build query scorers.

The purpose of Weight is to make it so that searching does not modify a Query, so that a Query instance can be reused.

WildcardQuery.javaClass Implements the wildcard search query.
WildcardTermEnum.javaClass Subclass of FilteredTermEnum for enumerating all terms that match the specified wildcard filter term.

Term enumerations are always ordered by Term.compareTo().

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.