Package org.alfresco.solr.query
Class SolrPathQuery
java.lang.Object
org.apache.lucene.search.Query
org.alfresco.solr.query.SolrPathQuery
public class SolrPathQuery
extends org.apache.lucene.search.Query
An extension to the Lucene query set. This query supports structured queries against paths. The field must have been
tokenised using the path tokeniser. This class manages linking together an ordered chain of absolute and relative
positional queries.
- Author:
- Andy Hind
-
Constructor Summary
ConstructorsConstructorDescriptionSolrPathQuery(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) The base query -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScore) booleanorg.apache.lucene.index.TerminthashCode()booleanisEmpty()voidvoidsetPathField(String pathField) voidsetQuery(List<StructuredFieldPosition> path) voidsetRepeats(boolean repeats) Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
SolrPathQuery
public SolrPathQuery(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) The base query- Parameters:
dictionaryService- DictionaryService
-
-
Method Details
-
setQuery
-
appendQuery
-
getPathField
-
setPathField
-
getPathRootTerm
public org.apache.lucene.index.Term getPathRootTerm() -
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScore) - Overrides:
createWeightin classorg.apache.lucene.search.Query
-
toString
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
removeDescendantAndSelf
public void removeDescendantAndSelf() -
isEmpty
public boolean isEmpty() -
getPathStructuredFieldPositions
-
setRepeats
public void setRepeats(boolean repeats) -
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
equals
- Specified by:
equalsin classorg.apache.lucene.search.Query
-