org.apache.solr.search.RankQuery Java Examples

The following examples show how to use org.apache.solr.search.RankQuery. 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 File: QuerqyReRankQuery.java    From querqy with 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
Source File: AlfrescoReRankQParserPlugin.java    From SearchServices with GNU Lesser General Public License v3.0 4 votes vote down vote up
public RankQuery wrap(Query _mainQuery) {
    if(_mainQuery != null){
        this.mainQuery = _mainQuery;
    }
    return  this;
}
 
Example #3
Source File: LTRQParserPlugin.java    From lucene-solr with 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 File: ResponseBuilder.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
public RankQuery getRankQuery() {
  return rankQuery;
}
 
Example #5
Source File: ResponseBuilder.java    From lucene-solr with Apache License 2.0 4 votes vote down vote up
public void setRankQuery(RankQuery rankQuery) {
  this.rankQuery = rankQuery;
}