我被建议使用Field.Set OmitNorms(true); 在为lucenesearch创建文档时,根据命中数对结果进行排序,但我不知道它的作用是什么,是否安全.
根据命中数对结果进行排序意味着找到搜索文本的文档的最大次数应该位于顶部,其次是b匹配搜索文本的次数较少的文档.
我知道它很傻但我想在实施之前知道请帮忙.
Mak*_*aks 10
Check out this article for a good paragraph description of what omit norms does in term of optimisation. Basically its kind of like having a mini lucene index for the terms inside of a field, so its really only useful for fields that would have a lot of text inside them.