This repository has been archived by the owner on Jun 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from luaks/feature/204-term-suggestions-canno…
…t-be-limited-by-a-full-text-search #204: limit suggestions based on an existing fulltext search
- Loading branch information
Showing
10 changed files
with
175 additions
and
51 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
23 changes: 23 additions & 0 deletions
23
api/src/main/java/com/rbmhtechnology/vind/api/query/FulltextTerm.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,23 @@ | ||
package com.rbmhtechnology.vind.api.query; | ||
|
||
public class FulltextTerm { | ||
private final String fulltextSearchTerm; | ||
private final String minimumMatch; | ||
|
||
public FulltextTerm(String fulltextSearchTerm, String minimumMatch) { | ||
this.fulltextSearchTerm = fulltextSearchTerm; | ||
this.minimumMatch = minimumMatch; | ||
} | ||
|
||
public String getFulltextSearchTerm() { | ||
return fulltextSearchTerm; | ||
} | ||
|
||
public String getMinimumMatch() { | ||
return minimumMatch; | ||
} | ||
|
||
public FulltextTerm copy() { | ||
return new FulltextTerm(getFulltextSearchTerm(), getMinimumMatch()); | ||
} | ||
} |
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
Oops, something went wrong.