- Lucene - Sorting
- Lucene - Analysis
- Lucene - Query Programming
- Lucene - Search Operation
- Lucene - Indexing Operations
- Lucene - Indexing Process
- Lucene - Searching Classes
- Lucene - Indexing Classes
- Lucene - First Application
- Lucene - Environment Setup
- Lucene - Overview
- Lucene - Home
Lucene Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Lucene - Searching Classes
The process of Searching is again one of the core functionapties provided by Lucene. Its flow is similar to that of the indexing process. Basic search of Lucene can be made using the following classes which can also be termed as foundation classes for all search related operations.
Searching Classes
Following is a pst of commonly-used classes during searching process.
S.No. | Class & Description |
---|---|
1 | This class act as a core component which reads/searches indexes created after the indexing process. It takes directory instance pointing to the location containing the indexes. |
2 | This class is the lowest unit of searching. It is similar to Field in indexing process. |
3 | Query is an abstract class and contains various utipty methods and is the parent of all types of queries that Lucene uses during search process. |
4 | TermQuery is the most commonly-used query object and is the foundation of many complex queries that Lucene can make use of. |
5 | TopDocs points to the top N search results which matches the search criteria. It is a simple container of pointers to point to documents which are the output of a search result. |