Firstly, did you check here: http://lucene.apache.org/core/4_4_0/core/org/apache/lucene/search/package-summary.html#package_description
2013/8/28 zseml <zs...@hotmail.com> > In Solr syntax, is there a way to add weight to the result found based on > the > location of the string that it's found? > > For instance, if I'm searching these strings for "Hello": > > "Hello World" > "World Hello" > > ...I'd like the first result to be the first one in my search results. > > Additionally, is there a way to add weight based on the number of > occurrences of a string that are found? For instance, if I'm searching > these strings for "Hello": > > "Hello World Hello" > "Hello World" > > ...again, I'd like the first result to be found. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Adding-weight-to-location-of-the-string-found-tp4086932.html > Sent from the Solr - User mailing list archive at Nabble.com. >