在 solr 管理员(www.example.com:8065/solr/admin/file/?file=schema.xml,我的 schema.xml 看起来像:
<field name="unique_id" type="string" indexed="true" stored="true" required="true"/>
<field name="collapse" type="string" indexed="true" stored="true"/>
<field name="roles" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="apptype" type="string" indexed="true" stored="true"/>
<field name="attachmentname" type="string" indexed="true" stored="true"/>
<field name="attachmenttext" type="text" indexed="true" stored="true"/>
<field name="content" type="text" indexed="true" stored="true" termVectors="true"/>
<field name="contentid" type="string" indexed="true" stored="true"/>
<field name="date" type="string" indexed="true" stored="true"/>
<field name="group" type="integer" indexed="true" stored="true"/>
<field name="grouptype" type="string" indexed="true" stored="true"/>
<field name="parentgroup" type="integer" indexed="true" stored="true"/>
<field name="rating" type="string" indexed="true" stored="true"/>
<field name="rawcontent" type="string" indexed="false" stored="true" compressed="true"/>
<field name="section" type="integer" indexed="true" stored="true"/>
<field name="tag" type="text" indexed="true" stored="true" multiValued="true" termVectors="true"/>
<field name="tagkeyword" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="threadstatus" type="string" indexed="true" stored="true"/>
<field name="title" type="text" indexed="true" stored="true" termVectors="true"/>
<field name="titlesort" type="string" indexed="true" stored="true"/>
<field name="type" type="string" indexed="true" stored="true"/>
<field name="url" type="string" indexed="true" stored="true"/>
<field name="user" type="string" indexed="true" stored="true"/>
<field name="userdisplayname" type="string" indexed="true" stored="true"/>
<field name="username" type="string" indexed="true" stored="true"/>
<field name="wiki" type="integer" indexed="true" stored="true"/>
<field name="createdby" type="string" indexed="true" stored="true"/>
<field name="editedby" type="string" indexed="true" stored="true"/>
<field name="thread" type="integer" indexed="true" stored="true"/>
<field name="indexed_at" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>
我有一堆带有“测试”这个词的内容,所以我查询它:
:8085/solr/select/?q=test&version=2.2&start=1&rows=10&indent=on
如果我在最后添加日期或时间戳或 indexed_at 它不会改变结果吗?
:8085/solr/select/?q=test&version=2.2&start=1&rows=10&indent=on&date=2009-08-27T13:15:27.73Z
可能是什么问题?