0
我是个新手,SOLR,并试图了解动态字段,Solr的FLE布局,动态字段
假设我有以下模式,
如果文档1,包含 ID = 1,笔者=“ Tom“,title =”Python“,text =”Book“,first_name_string =”Tom“和last_name_string =”Dan“
如果文档-2包含 id = 2,author =”Brain“ “Java”,text =“Java”
如何将VA要储存吗?
它是我的第一个文档-1和文档-2将如上所示存储..我的文档-2的值first_name_string和last_name_string将是什么?
如果我做两个文件的查询,如何将SOLR结果看..
<?xml verson='1.0' ?>
<schema name='simple' version='1.1'>
<types>
<fieldtype name='string' class='solr.StrField' />
<fieldType name='long' class='solr.TrieLongField' />
</types>
<fields>
<field name='id' type='long' required='true' />
<field name='author' type='string' multiValued='true' />
<field name='title' type='string' />
<field name='text' type='string' />
<dynamicField name='*_string' type='string'
multiValued='true' indexed='true' stored='true' />
<copyField source='*' dest='fullText' />
<field name='fullText' type='string'multiValued='true' indexed='true' />
</fields>
<uniqueKey>id</uniqueKey>
<defaultSearchField>fullText</defaultSearchField>
<solrQueryParser defaultOperator='OR' />
</schema>