Method | Description | |
---|---|---|
Add ( |
Adds the specified page to the search index.
|
|
CreateIndex ( ) : void |
Creates the initial search index based on all pages in the system.
|
|
Delete ( |
Deletes the specified page from the search indexs.
|
|
Search ( string searchText ) : IEnumerable |
Searches the lucene index with the search text. Syntax reference: http://lucene.apache.org/java/2_3_2/queryparsersyntax.html#Wildcard |
|
SearchService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository, IPluginFactory pluginFactory ) : System | ||
Update ( |
Updates the Page in the search index, by removing it and re-adding it.
|
Method | Description | |
---|---|---|
EnsureDirectoryExists ( ) : void | ||
GetContentSummary ( |
Converts the page summary to a lucene Document with the relevant searchable fields.
|
public Add ( |
||
model | The page to add. | |
return | void |
public Delete ( |
||
model | The page to remove. | |
return | int |
public Search ( string searchText ) : IEnumerable |
||
searchText | string | The text to search with. |
return | IEnumerable |
public SearchService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository, IPluginFactory pluginFactory ) : System | ||
settings | Roadkill.Core.Configuration.ApplicationSettings | |
repository | IRepository | |
pluginFactory | IPluginFactory | |
return | System |
public Update ( |
||
model | The page to update | |
return | void |