Skip to content

Commit

Permalink
Upgrade to [org.querqy/querqy-core "3.14.0"]
Browse files Browse the repository at this point in the history
  • Loading branch information
jvia committed Jan 19, 2024
1 parent 538cad8 commit 30714c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

:dependencies
[[org.clojure/clojure "1.11.1"]
[org.querqy/querqy-core "3.12.0"]]
[org.querqy/querqy-core "3.14.0"]]

:repl-options {:init-ns com.nytimes.querqy}

Expand Down
6 changes: 4 additions & 2 deletions src/com/nytimes/querqy/commonrules.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(querqy.parser QuerqyParser)
(querqy.rewrite RewriterFactory)
(querqy.rewrite.commonrules CommonRulesRewriter LineParser QuerqyParserFactory SimpleCommonRulesParser WhiteSpaceQuerqyParserFactory)
(querqy.rewrite.commonrules.model BoostInstruction BoostInstruction$BoostDirection DeleteInstruction FilterInstruction Instructions SynonymInstruction TrieMapRulesCollectionBuilder)
(querqy.rewrite.commonrules.model BoostInstruction BoostInstruction$BoostDirection BoostInstruction$BoostMethod DeleteInstruction FilterInstruction Instructions SynonymInstruction TrieMapRulesCollectionBuilder)
(querqy.rewrite.commonrules.select SelectionStrategyFactory)
(querqy.rewrite.commonrules.select.booleaninput BooleanInputParser)
(querqy.rewrite.commonrules.select.booleaninput.model BooleanInputElement BooleanInputElement$Type BooleanInputLiteral)))
Expand Down Expand Up @@ -62,7 +62,8 @@
^Reader stream
^boolean boolean-input
^QuerqyParserFactory parser
^boolean ignore-case)]
^boolean ignore-case
BoostInstruction$BoostMethod/ADDITIVE)]
(.parse rules-parser))))

(extend-protocol CommonRulesRewriterBuilder
Expand Down Expand Up @@ -135,6 +136,7 @@
DOWN BoostInstruction$BoostDirection/DOWN]
(BoostInstruction. (parse-query query)
(if (>= boost 0) UP DOWN)
BoostInstruction$BoostMethod/ADDITIVE
(abs boost))))

(defn filter
Expand Down
2 changes: 1 addition & 1 deletion src/com/nytimes/querqy/model.clj
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
:or {boost-up []
boost-down []
filter []}}]
(ExpandedQuery. query filter boost-up boost-down))
(ExpandedQuery. query filter boost-up boost-down []))

(defn expanded?
[obj]
Expand Down

0 comments on commit 30714c6

Please sign in to comment.