You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by isspek <ip...@gmail.com> on 2017/11/14 12:05:27 UTC
Computing payload score of other term and querying different field
at the same time
Hi all,
I am using payload in Solr 7.0.0. I have a question about how to write
payload score query computing scores of more than one terms on field name
(payloads). Also, at the same time I am trying to query a different field
(exp: content) by using different Lucene Query Parser. I tried the below
one:
select?q=content:veli%20AND%20{!payload_score%20f=payloads%20%20func=average}ali+veli&debug=true
I have received following response:
rawquerystring: "content:veli AND {!payload_score f=payloads
func=average}ali veli",
querystring: "content:veli AND {!payload_score f=payloads func=average}ali
veli",
parsedquery: "+content:veli
+PayloadScoreQuery(PayloadScoreQuery(payloads:ali, function:
AveragePayloadFunction, includeSpanScore: false)) text:veli",
parsedquery_toString: "+content:veli +PayloadScoreQuery(payloads:ali,
function: AveragePayloadFunction, includeSpanScore: false) text:veli",
It looks that only payload of term "ali" has been computed not term "veli".
It seems "veli" has been searched in text.
How should I fix my query for computing payload score of other term and
querying different field at the same time?
isspek
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html