org.apache.maven.index
Class AbstractSearchRequest

java.lang.Object
  extended by org.apache.maven.index.AbstractSearchRequest
Direct Known Subclasses:
AbstractSearchPageableRequest, FlatSearchRequest, GroupedSearchRequest

public class AbstractSearchRequest
extends Object


Field Summary
static int UNDEFINED
          Constant for denoting undefined value for result count.
 
Constructor Summary
AbstractSearchRequest(org.apache.lucene.search.Query query)
           
AbstractSearchRequest(org.apache.lucene.search.Query query, List<IndexingContext> contexts)
           
 
Method Summary
 ArtifactInfoFilter getArtifactInfoFilter()
           
 ArtifactInfoPostprocessor getArtifactInfoPostprocessor()
           
 List<IndexingContext> getContexts()
           
 int getCount()
          Returns the "count" of wanted results.
 List<MatchHighlightRequest> getMatchHighlightRequests()
           
 org.apache.lucene.search.Query getQuery()
           
 int getResultHitLimit()
          Deprecated. always returns -1 (no hit limit), since 4.1.0 there is no notion of hit limit
 boolean isHitLimited()
          Deprecated. always returns false, since 4.1.0 there is no notion of hit limit
 boolean isLuceneExplain()
           
 void setArtifactInfoFilter(ArtifactInfoFilter artifactInfoFilter)
           
 void setArtifactInfoPostprocessor(ArtifactInfoPostprocessor artifactInfoPostprocessor)
           
 void setContexts(List<IndexingContext> contexts)
           
 void setCount(int count)
          Sets the "count" of wanted results.
 void setLuceneExplain(boolean luceneExplain)
           
 void setMatchHighlightRequests(List<MatchHighlightRequest> matchHighlightRequests)
           
 void setQuery(org.apache.lucene.search.Query query)
           
 void setResultHitLimit(int resultHitLimit)
          Deprecated. does nothing, since 4.1.0 there is no notion of hit limit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
Constant for denoting undefined value for result count.

See Also:
Constant Field Values
Constructor Detail

AbstractSearchRequest

public AbstractSearchRequest(org.apache.lucene.search.Query query)

AbstractSearchRequest

public AbstractSearchRequest(org.apache.lucene.search.Query query,
                             List<IndexingContext> contexts)
Method Detail

getQuery

public org.apache.lucene.search.Query getQuery()

setQuery

public void setQuery(org.apache.lucene.search.Query query)

getContexts

public List<IndexingContext> getContexts()

setContexts

public void setContexts(List<IndexingContext> contexts)

getCount

public int getCount()
Returns the "count" of wanted results. See UNDEFINED and count.

Returns:

setCount

public void setCount(int count)
Sets the "count" of wanted results. See UNDEFINED and count.

Parameters:
count -

isHitLimited

public boolean isHitLimited()
Deprecated. always returns false, since 4.1.0 there is no notion of hit limit

Returns true if hits are limited.

Returns:
See Also:
http://jira.codehaus.org/browse/MINDEXER-14

getResultHitLimit

public int getResultHitLimit()
Deprecated. always returns -1 (no hit limit), since 4.1.0 there is no notion of hit limit

Gets the hit limit. Since 4.1.0 does nothing, always returns -1 (was "no hit limit").

Returns:
See Also:
http://jira.codehaus.org/browse/MINDEXER-14

setResultHitLimit

public void setResultHitLimit(int resultHitLimit)
Deprecated. does nothing, since 4.1.0 there is no notion of hit limit

Sets the hit limit. Since 4.1.0 does nothing.

Parameters:
resultHitLimit -
See Also:
http://jira.codehaus.org/browse/MINDEXER-14

getArtifactInfoFilter

public ArtifactInfoFilter getArtifactInfoFilter()

setArtifactInfoFilter

public void setArtifactInfoFilter(ArtifactInfoFilter artifactInfoFilter)

getArtifactInfoPostprocessor

public ArtifactInfoPostprocessor getArtifactInfoPostprocessor()

setArtifactInfoPostprocessor

public void setArtifactInfoPostprocessor(ArtifactInfoPostprocessor artifactInfoPostprocessor)

getMatchHighlightRequests

public List<MatchHighlightRequest> getMatchHighlightRequests()

setMatchHighlightRequests

public void setMatchHighlightRequests(List<MatchHighlightRequest> matchHighlightRequests)

isLuceneExplain

public boolean isLuceneExplain()

setLuceneExplain

public void setLuceneExplain(boolean luceneExplain)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.