lucene.net包含空格的搜索字符串,例如: [英] lucene.net search string including space e.g: "process engine"

查看:184
本文介绍了lucene.net包含空格的搜索字符串,例如:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾尝试搜索过程引擎"之类的lucene索引词.
我个人获得了搜索结果,但未合并.

如果索引字符串就像我正在使用 proces引擎"
它应该同时搜索两个单词combined

i have tried to search lucene index word like "process engine" .
individualy i got search result but not combined.

if indexed string is like "i am working on proces engine"
it should search both words combined

推荐答案

尝试在每个术语之前添加一个+,即
Try adding a + before each term i.e.
+process +engine


这篇关于lucene.net包含空格的搜索字符串,例如:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆