Short: No.
Long: the concept is different from what you are looking for. The
DisMaxQHandler splits up the tokens and searches each token across the
given field with a DIsMaxQuery. All DismaxQueries are combined in a
BooleanQuery as SHould clauses (with a minShouldMatch according your mm
setting).
Thus at scoring time the information whether two tokens are in the same
field is lost and does not influence the score at all. I'm looking for a
problem of similar kind since a year now :(
cross-field search is just nothing that fits to the general concept of
lucene search, as each field is conceptual its own index...
What you can play 'round with:
- index in one field
- use payloads to filter/change score
- do several or-searches on each and play with boosts and different tf()
phraseFreq() implementations (more hits in a document lower the score)
- write your own SpanQuery with Spans (urgs :) )
Jan
On 09.12.2010 13:36, ext davidbrai wrote:
Thanks for the relpy.
I've tried to add a tie breaker with different values, but in most cases it
didn't change anything, and sometimes caused weird things to have higher
scores, like you suggested might happen.
Is there another way?
On Thu, Dec 9, 2010 at 1:58 PM, jan.kurella [via Lucene]<
ml-node+2056811-1876551227-290...@n3.nabble.com<ml-node%2b2056811-1876551227-290...@n3.nabble.com>
wrote:
try to set the tiebreaker above 1.0, this will increase score for dismax
findings in other than the best field.
But this may lead to strange side effects?
-----Original Message-----
From: ext davidbrai [mailto:[hidden
email]<http://user/SendEmail.jtp?type=node&node=2056811&i=0>]
Sent: Donnerstag, 9. Dezember 2010 09:55
To: [hidden email]<http://user/SendEmail.jtp?type=node&node=2056811&i=1>
Subject: dismax: limiting term match to one field
Hello,
I'm trying to use dismax to search for several terms in several fields
with
different weights.
It works good, but I want to limit the matching of terms to a single
field.
example:
given the documents:
doc1=
name: pulp fiction
category: thriller
doc2=
name: pulp
category: fiction
query: qf=name^5 category&q=pulp fiction&mm=2
I want doc2 to get a higher score.
Can I do this using dismax?
--
View this message in context:
http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2056498.html<http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2056498.html?by-user=t>
Sent from the Solr - User mailing list archive at Nabble.com.
------------------------------
View message @
http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2056811.html
To unsubscribe from dismax: limiting term match to one field, click
here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2056498&code=ZGF2aWRicmFpQGdtYWlsLmNvbXwyMDU2NDk4fC0xMDEyMDA2NQ==>.