Take the 2-minute tour ×

I have an index with a field (eg. field1) with two rows, one is "short greg" and the second one is "great greg". if I search with (using Luke) : field1:g* field1:greg

the result will be both rows but with the same score! These because both words have the same initial character G.

My expectation is "great greg" with the maximum score, where G* give more weight to the score of "GREAT GREG".

the question is : how to write this query ? thanks anyway

share|improve this question
It is, how do you think you should do it? –  Ben Oct 26 '12 at 18:52
thanks for the comment (and the useful link), I don't know if is possible to filter the result using the same initial character, so I put this question :) –  Fab Oct 26 '12 at 19:07

1 Answer 1

I'm not sure, but the identical score might be because your query is equivalent to:

field1:g* OR field1:greg

I would try in Luke:

+field1:g* +field1:greg

(which is equivalent to

field1:g* AND field1:greg

share|improve this answer
thank you for the comment, using AND operator don't change the score –  Fab Oct 26 '12 at 19:13

Your Answer


