Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- POST _search
- "query": {
- "more_like_this" : {
- "fields" : ["tags"],
- "like" : ["t1", "t2"],
- "min_term_freq" : 1,
- "min_doc_freq": 1
- }
- }
- Document1 ("t1 t2") with score 0.8838835
- Document2 ("t1") with score 0.30685282
- Document3 ("t1 t3") with score 0.19178301
- Document2 ("t1")
- Document3 ("t1 t3")
- Document1 ("t1 t2")
- @Query("{" +
- " query: {" +
- " more_like_this : {" +
- " fields : ["tags"]," +
- " like : ["t1", "t2"]," +
- " min_term_freq : 1," +
- " min_doc_freq: 1" +
- " }" +
- " }" +
- "}")
- List<Taggeable> customMethod(String tags);
Add Comment
Please, Sign In to add comment