Say my user has defined a preference that it is more interested in
certain authors than others, so for instance would like to see books
from author 100147, 100234 and 100602 higher up in the search results
than other books. How can you now apply this boost at query time?
(same goes for categories btw).
Say my user has defined a preference that it is more interested in
certain authors than others, so for instance would like to see books
from author 100147, 100234 and 100602 higher up in the search results
than other books. How can you now apply this boost at query time?
(same goes for categories btw).
Say my user has defined a preference that it is more interested in
certain authors than others, so for instance would like to see books
from author 100147, 100234 and 100602 higher up in the search results
than other books. How can you now apply this boost at query time?
(same goes for categories btw).
I had a similar requirement which I solved using this code (Java), just in
case it can inspire yours. It consisted of discriminating the results
belonging to a special category (sorry about the spanish field names):
Say my user has defined a preference that it is more interested in
certain authors than others, so for instance would like to see books
from author 100147, 100234 and 100602 higher up in the search results
than other books. How can you now apply this boost at query time?
(same goes for categories btw).
Great! Could you explain to me the terms "lucene query" and "native script"?
Thanks,
Yannick
-----Original Message-----
From: Karussell [mailto:tableyourtime@googlemail.com]
Sent: vrijdag 20 mei 2011 21:58
To: users
Subject: Re: boosting at query time based on property value
A lucene query works for this:
{ "query":{
"query_string" : {
"default_field" : "author",
"query" : "* OR author:ab^1 OR author:xy^10"
}
}}
Will this work or is there a more efficient way I'm not seeing?
using native script should be also a bit more efficient
Great! Could you explain to me the terms "lucene query" and "native script"?
Thanks,
Yannick
-----Original Message-----
From: Karussell [mailto:tableyourt...@googlemail.com]
Sent: vrijdag 20 mei 2011 21:58
To: users
Subject: Re: boosting at query time based on property value
A lucene query works for this:
{ "query":{
"query_string" : {
"default_field" : "author",
"query" : "* OR author:ab^1 OR author:xy^10"
}
}}
Will this work or is there a more efficient way I'm not seeing?
using native script should be also a bit more efficient
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.