Apache Solr全文搜索服务器简单查询
<schema name="example" version="1.6"> <fieldtype name="string" sortMissingLast="true" omitNorms="true"/><fieldtype name="long" precisionStep="0" positionIncrementGap="0"/>
<field name="_version_" type="long" indexed="true" stored="true" />
<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="name" type="string" indexed="true" stored="true"/>
<uniqueKey>id</uniqueKey>
<defaultSearchField>name</defaultSearchField>
<solrQueryParser defaultOperator="OR" />
</schema>
页:
[1]