我是日光浴新手,我使用的是版本2.我已经创建了架构,并且我需要知道如何传递搜索关键字,该关键字应该在所有字段中搜索或少量字段按照xml。搜索键,在xml中提到的所有字段
例如:我的领域是这样的。 "title", "description", "keywords" etc.
所以当用户输入一些单词作为"xyz"
它应该搜索所有上面提到的领域,并产生输出。它应该搜索不仅有确切的,但应该是像我们这样的sql "like"
日光浴的样本例子并没有得到方便。
任何帮助表示赞赏。
编辑_领域中
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
<!-- in this example, we will only use synonyms at query time
<filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
-->
<filter class="solr.LowerCaseFilterFactory"/>
我所有的字段类型是text_general ..我用的Solr 4.2.1
和我的solr版本是4.2.1 – sandy 2013-05-06 09:43:26