tailieunhanh - Solr 1.4 Enterprise Search Server- P4

Tham khảo tài liệu 'solr enterprise search server- p4', công nghệ thông tin, quản trị web phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 5 Why the AND Remember from Chapter 4 that a pure negative query doesn t work correctly if it is not at the top level of the query that Lucene ultimately processes. Testing this query out in q with the standard handler will work without the part but once we use it in bq then the AND will be required for it to work. If we put the previous query into the URL and add an initial arbitrary boost of two then it looks like this after URL encoding bq -a_end_date 3A TO AND 3A x2 Of course URL encoding is only for the URL and not for entry in the request handler configuration where bq is probably most suitably configured. Remember to specify a non-default boost There is some code within dismax that supports legacy behavior of this feature. It kicks in when there is one boost query and it has a boost of one by default. This legacy behavior is not necessarily a problem but it was for our query here before I made the boost two. I noticed some strange results using debugQuery and looking at parsedquery in the output which allowed me to see that my boost query wasn t incorporated into the final query in the way I expected. Looking at the source code showed the legacy logic and under what circumstances it took effect. It should be easy to avoid this problem because you will want to tweak the boost value to your liking. I experimented with a search for the band Nirvana. Nirvana the well-known 90 s alternative rock band is no longer current and it has an end date. But it appears that there are bands that are also named Nirvana in our MusicBrainz data set that don t have an end date. Here is a search for Nirvana with our mb_artists handler without specifying a boost query lst name responseHeader int name status 0 int int name QTime 4 int lst name params str name qf a_name a_alias a_member_name str str name defType dismax str str name tie str str name wt standard str str name rows 10 str str name start 0 str 135 Enhanced Searching str name explainOther str name .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.