Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aleksandra Tsys
Suggester
Commits
b073ba13
Commit
b073ba13
authored
Dec 22, 2020
by
Aleksandra Tsys
Browse files
+
parent
384f977c
Changes
1
Hide whitespace changes
Inline
Side-by-side
fuzzy_gradle/src/main/java/org/apache/lucene/search/suggest/analyzing/ContextAnalyzingSuggester.java
View file @
b073ba13
...
...
@@ -709,17 +709,9 @@ public class ContextAnalyzingSuggester extends Lookup implements Accountable {
protected
boolean
acceptResult
(
IntsRef
input
,
PairOutputs
.
Pair
<
Long
,
BytesRef
>
output
)
{
LookupResult
result
=
getLookupResult
(
output
.
output1
,
output
.
output2
,
spare
);
BytesRef
res_context
=
result
.
payload
;
System
.
out
.
println
(
"res_context = "
+
res_context
);
for
(
BytesRef
context
:
contexts
)
{
System
.
out
.
println
(
"context = "
+
context
);
}
if
(
contexts
==
null
||
!(
contexts
.
contains
(
res_context
)))
{
return
false
;
}
System
.
out
.
println
(
"contains 1"
);
return
true
;
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment