Solr: Multilingual search

探讨了在Solr中实现跨语言搜索和索引的能力,包括创建单独字段、使用多索引和内置多语言支持等三种方法。
 Because of the wide variations between languages, there is not a single, consistent model to follow when defining a field in Solr to properly handle a language. Some languages require their own stemming filters, others require multiple filters to handle different language characteristics (such as normalization of characters, removal of accents, and even custom lowercasing functionality), and some languages require their own tokenizers due to the complexity of parsing the language.

 
 ---------------------------------------------------------------------------------------------------------------------------------

 Searching content in multiple languages

 

 techniques for searching multilingual content in which you may have different languages across your documents or even multiple languages within a single document or field. There are three primary ways to implement these kinds of multilingual search capabilities:

  1. Create a separate field per language, and spread your query across each of them.

     

     
  2. Use multiple Solr indexes containing the same field name, with each index having the field configured to handle a different language.

     

     
  3. Implement a field type which is natively able to index and search across multiple languages at the same time.

     

     

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值