Class SiteTextSearchQuery
- java.lang.Object
-
- com.atlassian.confluence.search.v2.query.SiteTextSearchQuery
-
- All Implemented Interfaces:
Expandable<SearchQuery>,SearchQuery
@Internal public class SiteTextSearchQuery extends Object implements SearchQuery
Relocation from confluence-search plugin.- Since:
- 6.16.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSiteTextSearchQuery.Boost
-
Constructor Summary
Constructors Constructor Description SiteTextSearchQuery(String text)SiteTextSearchQuery(String text, SiteTextSearchQuery.Boost shouldBoost)Deprecated.since 2.3.11 usenew BoostingQuery(new SiteSearchQuery())
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SearchQueryexpand()Rewrite it into function score query that boosts score by modified date.StringgetKey()ListgetParameters()List of parameters asStrings orSearchQuerys.StringgetTextQuery()inthashCode()static booleanisQueryStringSyntax(String queryString)SiteTextSearchQuery.BoostshouldBoost()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
getBoost, getSubClauses
-
-
-
-
Field Detail
-
KEY
public static final String KEY
There is no query mapper registered for this key, which forces the expand() to be called. The expand will return an anonymous inner class that has a different key for which there is a mapper. TODO for 8.0: CONFSRVDEV-21036 - split into two queries to make more obvious which one expands and which is primitive- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SiteTextSearchQuery
@Deprecated public SiteTextSearchQuery(String text, SiteTextSearchQuery.Boost shouldBoost)
Deprecated.since 2.3.11 usenew BoostingQuery(new SiteSearchQuery())
-
SiteTextSearchQuery
public SiteTextSearchQuery(String text)
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
public List getParameters()
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
getTextQuery
public String getTextQuery()
-
shouldBoost
public SiteTextSearchQuery.Boost shouldBoost()
-
isQueryStringSyntax
public static boolean isQueryStringSyntax(String queryString)
-
expand
public SearchQuery expand()
Rewrite it into function score query that boosts score by modified date. The FunctionScoreQuery wraps a new anonymous inner class that does have a LuceneQueryMapper registered to return the plain textQuery.- Specified by:
expandin interfaceExpandable<SearchQuery>- Specified by:
expandin interfaceSearchQuery- Returns:
- a query
-
-