Boosting 3

2-6-02. Lucene’s Practical Scoring Function

For multiterm queries, Lucene takes the Boolean model, TF/IDF, and the vector space model and combines them in a single efficient package that collects matching documents and scores them as it goes.다중 단어 query의 경우, Lucene은 Boolean model, TF/IDF 그리고, vector space model을 가지고, 일치하는 document를 수집하고, score를 계산하는, 하나의 효율적인 패키지로 그들을 조합한다.A multiterm query like다중 단어 query는GET /my_index/doc/_search { "que..

2-6-04. Manipulating Relevance with Query Structure

The Elasticsearch query DSL is immensely flexible. You can move individual query clauses up and down the query hierarchy to make a clause more or less important. For instance, imagine the following query:Elasticsearch의 query DSL은 매우 유연하다. 개별 query 절을, 절의 중요도에 따라, query 계층 구조의 위아래로 옮길 수 있다. 예를 들어, 아래 query를 가정해 보자.quick OR brown OR red OR foxWe could write this as a bool query with all terms at t..

2-6-05. Not Quite Not

A search on the Internet for "Apple" is likely to return results about the company, the fruit, and various recipes. We could try to narrow it down to just the company by excluding words like pie, tart, crumble, and tree, using a must_not clause in a bool query:인터넷에서 "Apple" 을 검색하면, 회사(company), 과일(fruit) 그리고 다양한 조리법(recipes)에 대한 결과를 반환할 것이다. bool query에서 must_not 절을 사용하여, pie, tart, crumble, 그리고..