Java Code Examples for org.apache.solr.search.RankQuery

The following examples show how to use org.apache.solr.search.RankQuery. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: querqy   Source File: QuerqyReRankQuery.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public RankQuery wrap(final Query mainQuery) {
    if (mainQuery == null) {
        throw new IllegalArgumentException("Cannot wrap null");
    }
    this.mainQuery = mainQuery;
    return this;
}
 
Example 2
public RankQuery wrap(Query _mainQuery) {
    if(_mainQuery != null){
        this.mainQuery = _mainQuery;
    }
    return  this;
}
 
Example 3
Source Project: lucene-solr   Source File: LTRQParserPlugin.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public RankQuery wrap(Query _mainQuery) {
  super.wrap(_mainQuery);
  scoringQuery.setOriginalQuery(_mainQuery);
  return this;
}
 
Example 4
Source Project: lucene-solr   Source File: ResponseBuilder.java    License: Apache License 2.0 4 votes vote down vote up
public RankQuery getRankQuery() {
  return rankQuery;
}
 
Example 5
Source Project: lucene-solr   Source File: ResponseBuilder.java    License: Apache License 2.0 4 votes vote down vote up
public void setRankQuery(RankQuery rankQuery) {
  this.rankQuery = rankQuery;
}