Skip to content

Commit 9b949ce

Browse files
committed
Merge pull request #7 from vise890/compound-search-terms
[RFC] Compound search terms
2 parents 723479e + 84a61d1 commit 9b949ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/clj/cloujera/search/core.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@
4545

4646

4747
(defn term-matching [term]
48-
(extract-results (esd/search (conn) "videos" "video"
49-
:query (q/match :transcript term)
48+
(extract-results (esd/search (conn)
49+
"videos"
50+
"video"
51+
:query (q/match :transcript
52+
term
53+
{:type "phrase"})
5054
:highlight {:fields {:transcript {}}})))
5155

5256
(defn all []

0 commit comments

Comments
 (0)