我是日光浴新手,我使用的是版本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