WEIGHT 4

2-3-6. Boosting Query Clauses

Of course, the bool query isn’t restricted to combining simple one-word match queries. It can combine any other query, including other bool queries. It is commonly used to fine-tune the relevance _score for each document by combining the scores from several distinct queries.물론, bool query는, 간단한 단일 단어(one-word) match query를 조합하는데 있어, 제한이 없다. 다른 bool query는 물론이고, 다른 어떤 query와도 조합할 수 있다. 여러 별개의 que..

2-6-07. function_score Query

The function_score query is the ultimate tool for taking control of the scoring process. It allows you to apply a function to each document that matches the main query in order to alter or completely replace the original query _score.The function_score query는 score 계산 프로세스를 제어할 수 있는 최고의 도구이다. 원래 query의 _score 를 변경하거나, 완전히 대체하기 위하여, query에 일치하는 각 document에 function을 적용할 수 있다.In fact, you can appl..

2-6-09. Boosting Filtered Subsets

Let’s return to the problem that we were dealing with in Ignoring TF/IDF, where we wanted to scorevacation homes by the number of features that each home possesses. We ended that section by wishing for a way to use cached filters to affect the score, and with the function_score query we can do just that.Ignoring TF/IDF에서 다루었던 문제로 돌아가 보면, 여기에서는 각 여름용 별장이 가지고 있는 기능의 수로, 별장에 score를 계산하려 했다. score에 ..

2-6-12. Understanding the price Clause

The price clause is a little trickier. The user’s preferred price is anything up to £100, but this example sets the origin to £50. Prices can’t be negative, but the lower they are, the better. Really, any price between £0 and £100 should be considered optimal.price 절은 약간 교묘하다. 사용자의 선호 가격은 £100 이하이다. 그러나, 이 예제에서 origin은 £50으로 설정되어 있다. 가격은 –(negative)가 될 수 없다. 그러나 낮을수록 더 좋아한다. 실제로 £0과 £100 사이의 모든 ..