File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 21
21
22
22
:dependencies
23
23
[[org.clojure/clojure " 1.11.1" ]
24
- [org.querqy/querqy-core " 3.12 .0" ]]
24
+ [org.querqy/querqy-core " 3.14 .0" ]]
25
25
26
26
:repl-options {:init-ns com.nytimes.querqy}
27
27
Original file line number Diff line number Diff line change 14
14
(querqy.parser QuerqyParser)
15
15
(querqy.rewrite RewriterFactory)
16
16
(querqy.rewrite.commonrules CommonRulesRewriter LineParser QuerqyParserFactory SimpleCommonRulesParser WhiteSpaceQuerqyParserFactory)
17
- (querqy.rewrite.commonrules.model BoostInstruction BoostInstruction$BoostDirection DeleteInstruction FilterInstruction Instructions SynonymInstruction TrieMapRulesCollectionBuilder)
17
+ (querqy.rewrite.commonrules.model BoostInstruction BoostInstruction$BoostDirection BoostInstruction$BoostMethod DeleteInstruction FilterInstruction Instructions SynonymInstruction TrieMapRulesCollectionBuilder)
18
18
(querqy.rewrite.commonrules.select SelectionStrategyFactory)
19
19
(querqy.rewrite.commonrules.select.booleaninput BooleanInputParser)
20
20
(querqy.rewrite.commonrules.select.booleaninput.model BooleanInputElement BooleanInputElement$Type BooleanInputLiteral)))
62
62
^Reader stream
63
63
^boolean boolean-input
64
64
^QuerqyParserFactory parser
65
- ^boolean ignore-case)]
65
+ ^boolean ignore-case
66
+ BoostInstruction$BoostMethod/ADDITIVE)]
66
67
(.parse rules-parser))))
67
68
68
69
(extend-protocol CommonRulesRewriterBuilder
135
136
DOWN BoostInstruction$BoostDirection/DOWN]
136
137
(BoostInstruction. (parse-query query)
137
138
(if (>= boost 0 ) UP DOWN)
139
+ BoostInstruction$BoostMethod/ADDITIVE
138
140
(abs boost))))
139
141
140
142
(defn filter
Original file line number Diff line number Diff line change 228
228
:or {boost-up []
229
229
boost-down []
230
230
filter []}}]
231
- (ExpandedQuery. query filter boost-up boost-down))
231
+ (ExpandedQuery. query filter boost-up boost-down [] ))
232
232
233
233
(defn expanded?
234
234
[obj]
You can’t perform that action at this time.
0 commit comments