Home  >  Q&A  >  body text

java - lucene How to search for a keyword, and the keyword that is exactly the same as this one will be ranked first

As in the title, for example, if you search for the keyword 'toluene', the ones with the title "toluene" will be ranked first, and those with the title "xylene" will be ranked at the back.

phpcn_u1582phpcn_u15822662 days ago1166

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-07-05 10:04:21

    You can learn about the lunce scoring rules. According to your own custom scoring, those with high scores will be sorted and displayed at the front

    reply
    0
  • Cancelreply