Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.82 KB

File metadata and controls

30 lines (24 loc) · 1.82 KB

Query class

public class Query

Public Members

name description
Query() The default constructor.
Query(…) to allow unit tests for plug ins
ActionKeyword { get; set; }
FirstSearch { get; } Return first search split by space if it has
RawQuery { get; } Raw query, this includes action keyword if it has We didn't recommend use this property directly. You should always use Search property.
Search { get; } Search part of a query. This will not include action keyword if exclusive plugin gets it, otherwise it should be same as RawQuery. Since we allow user to switch a exclusive plugin to generic plugin, so this property will always give you the "real" query part of the query
SearchTerms { get; set; } The search string split into a string array.
SecondSearch { get; } Return second search split by space if it has
SecondToEndSearch { get; } strings from second search (including) to last search
ThirdSearch { get; } Return third search split by space if it has
override ToString()
const ActionKeywordSeparator User can set multiple action keywords separated by ';'
const GlobalPluginWildcardSign '*' is used for System Plugin
const TermSeparator Query can be splitted into multiple terms by whitespace

See Also