I have two documents and I use Luke for research, I confirmed in the code that it has the same behavior using StandardAnalyzer .
Document one with boost 1
stored/uncompressed,indexed,tokenized<Description:Nummer ett> stored/uncompressed,indexed,tokenized<Id:2> stored/uncompressed,indexed,tokenized<Name:Apa>
Document two with boost 2
stored/uncompressed,indexed,tokenized<Description:Nummer tvΓ₯> stored/uncompressed,indexed,tokenized<Id:1> stored/uncompressed,indexed,tokenized<Name:Apa>
Finding apa in the Name field Returns using boost and in the correct order.
Document 2 has Score 1,1891 Document 1 has Score 0.5945
Search ap * Returns the same score in any order
Document 1 Score 1.0000 Document 2 Score 1.0000
Search apa * Returns the same score in any order
Document 1 Score 1.0000 Document 2 Score 1.0000
Why is this? I would like to return some documents with a higher boost value, even if I have to use wildcards. Is it possible?
Greetings to all the cool coders!
This is what I want to do.
Search string and need matches. Using wildcards. Search "Lu" + "*"
Document Name City
I would like a document whose name Lund to get a higher rating than a document named Lunt or City, for example, Lund. This is due to the fact that I will know which documents are the most popular. I want to get documents with the city of Stockholm and call Stockholm and Stockholm, but ordered as I choose.