This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DATASOLR-153 - Added support for dismax queries.
- Loading branch information
Matt Hall
committed
Jul 23, 2019
1 parent
6d10043
commit a65189a
Showing
9 changed files
with
490 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/org/springframework/data/solr/core/query/AbstractDisMaxQueryDecorator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.springframework.data.solr.core.query; | ||
|
||
import org.springframework.lang.Nullable; | ||
|
||
|
||
/** | ||
* General purpose {@link DisMaxQuery} decorator. | ||
* | ||
* @author Matthew Hall | ||
* @since 4.1.0 | ||
*/ | ||
public abstract class AbstractDisMaxQueryDecorator extends AbstractQueryDecorator implements DisMaxQuery { | ||
|
||
private DisMaxQuery query; | ||
|
||
public AbstractDisMaxQueryDecorator(DisMaxQuery query) { | ||
super(query); | ||
this.query = query; | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public DisMaxOptions getDisMaxOptions() { | ||
return this.query.getDisMaxOptions(); | ||
} | ||
|
||
public <T extends SolrDataQuery> T setDisMaxOptions(DisMaxOptions disMaxOptions) { | ||
return this.query.setDisMaxOptions(disMaxOptions); | ||
} | ||
} |
Oops, something went wrong.