如何在solr.net中执行此简单查询?我现在已经3个小时......
Text:"Thank you"~10
以下不会返回结果:
var query = new SolrQueryByField("Text", "\"Thank you\"~10");
来自Fiddler:
GET /solr/new_core/select?rows=10&q=Text%3a%22%5c%22Thank+you%5c%22%5c%7e10%22&? HTTP/1.1
来自 schema.xml :
<field name="Text" type="text_auto" indexed="true" termVectors="true" stored="true" required="true" multiValued="false" />
<fieldType class="solr.TextField" name="text_auto" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.ShingleFilterFactory" maxShingleSize="4" outputUnigrams="true"/>
</analyzer>
</fieldType>