C# 클래스 Autocomplete.Core.SearchAutoComplete

Search term auto-completer, works for single terms (so use on the last term of the query). Returns more popular terms first.
http://stackoverflow.com/questions/120180/how-to-do-query-auto-completion-suggestions-in-lucene
파일 보기 프로젝트 열기: LateRoomsGroup/Autocomplete

공개 메소드들

메소드 설명
BuildAutoCompleteIndex ( ) : void

Open the index in the given directory and create a new index of word frequency for the given index.

SearchAutoComplete ( int maxResults = 8 ) : System
SuggestTermsFor ( string term ) : IEnumerable

Find terms matching the given partial word that appear in the highest number of documents.

비공개 메소드들

메소드 설명
MakeDocument ( Hotel hotel, int searchCount ) : Lucene.Net.Documents.Document
ReplaceSearcher ( ) : void

메소드 상세

BuildAutoCompleteIndex() 공개 메소드

Open the index in the given directory and create a new index of word frequency for the given index.
public BuildAutoCompleteIndex ( ) : void
리턴 void

SearchAutoComplete() 공개 메소드

public SearchAutoComplete ( int maxResults = 8 ) : System
maxResults int
리턴 System

SuggestTermsFor() 공개 메소드

Find terms matching the given partial word that appear in the highest number of documents.
public SuggestTermsFor ( string term ) : IEnumerable
term string A word or part of a word
리턴 IEnumerable