LXY3800 发表于 2017-12-18 20:32:12

Solr DataImportHandler 配置

<?  xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?>
  

  
<schema name=&quot;course_video&quot; version=&quot;1.5&quot;>
  <field name=&quot;id&quot; type=&quot;int&quot; indexed=&quot;true&quot; stored=&quot;true&quot; required=&quot;true&quot; multiValued=&quot;false&quot; />
  

  <field name=&quot;_version_&quot; type=&quot;long&quot; indexed=&quot;true&quot; stored=&quot;true&quot;/>
  

  <field name=&quot;title&quot; type=&quot;string&quot; indexed=&quot;true&quot; stored=&quot;true&quot; required=&quot;true&quot; multiValued=&quot;false&quot; />
  <field name=&quot;tags&quot; type=&quot;string&quot; indexed=&quot;true&quot; stored=&quot;false&quot; required=&quot;false&quot; multiValued=&quot;false&quot; />
  <field name=&quot;content&quot; type=&quot;string&quot; indexed=&quot;true&quot; stored=&quot;true&quot; required=&quot;false&quot; multiValued=&quot;false&quot; />
  

  <field name=&quot;info_text&quot; type=&quot;text_general&quot; indexed=&quot;true&quot; stored=&quot;false&quot; multiValued=&quot;true&quot; />
  

  <copyField source=&quot;title&quot; dest=&quot;info_text&quot; />
  <copyField source=&quot;content&quot; dest=&quot;info_text&quot; />
  <copyField source=&quot;tags&quot; dest=&quot;info_text&quot; />
  

  <uniqueKey>id</uniqueKey>
  


  <fieldType name=&quot;string&quot;>
  <fieldType name=&quot;int&quot;>  


  <fieldType name=&quot;text_general&quot;>  <analyzer type=&quot;index&quot;>

  <tokenizer>
  <filter>  </analyzer>
  

  <analyzer type=&quot;query&quot;>

  <tokenizer>
  <filter>  </analyzer>
  </fieldType>
  

  
</schema>
页: [1]
查看完整版本: Solr DataImportHandler 配置