Class SearchFiles
Simple command-line based search demo.
Inheritance
System.Object
SearchFiles
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Demo
Assembly: Lucene.Net.Demo.dll
Syntax
public class SearchFiles
Methods
| Improve this Doc View SourceDoPagingSearch(IndexSearcher, Query, Int32, Boolean, Boolean)
This demonstrates a typical paging search scenario, where the search engine presents pages of size n to the user. The user can then go to the next page if interested in the next hits.
When the query is executed for the first time, then only enough results are collected to fill 5 result pages. If the user wants to page beyond this limit, then the query is executed another time and all hits are collected.
Declaration
public static void DoPagingSearch(IndexSearcher searcher, Query query, int hitsPerPage, bool raw, bool interactive)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Search.IndexSearcher | searcher | |
Lucene.Net.Search.Query | query | |
System.Int32 | hitsPerPage | |
System.Boolean | raw | |
System.Boolean | interactive |
Main(String[])
Simple command-line based search demo.
Declaration
public static void Main(string[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args |