I implemented both solutions Hoss suggested and was able to achieve the
desired results. I would like to go with
defType=dismax & qf=myname & pf=myname_str^100 & q=Frank
but that doesn't seem to work if I have a query like myname:Frank
otherfield:something. So I think I will go with
q=+myname:F
Keep in mind that if you use a field type that includes spaces (eg
StrField, or KeywordTokenizer), then if you're using dismax or lucene
query parsers, the only way to find matches in this field on queries
that include spaces will be to do explicit phrase searches with double
quotes.
These fi
That's a clever idea. I'll put something together and see how it turns out.
Thanks for the tip.
On Wed, Jul 27, 2011 at 10:55 PM, Chris Hostetter
wrote:
>
> : With your solution, RECORD 1 does appear at the top but I think thats
> just
> : blind luck more than anything else because RECORD 3 shows
: With your solution, RECORD 1 does appear at the top but I think thats just
: blind luck more than anything else because RECORD 3 shows as having the same
: score. So what more can I do to push RECORD 1 up to the top. Ideally, I'd
: like all three records returned with RECORD 1 being the first li
Thanks Emmanuel for that explanation. I implemented your solution but I'm
not quite there yet. Suppose I also have a record:
RECORD 3
Fred G. Anderson
Fred Anderson
With your solution, RECORD 1 does appear at the top but I think thats just
blind luck more than anything else because RECORD 3
That is caused by the size of the documents. The principle is pretty
intuitive if one of your documents is the entire three volumes of The Lord
of the Rings, and you search for "tree" I know that The Lord of the Rings
will be in the results, and I haven't memorized the entire text of that book
:p
I
Hi all,
I am a little confused as to why the scoring is working the way it is:
I have a field defined as:
And I have several documents where that value is:
RECORD 1
Fred
Fred (the coolest guy in town)
OR
RECORD 2
Fred Anderson
What happens when I do a search for
http://localhost: