Solr 日期字段 tdate 与日期? [英] Solr date field tdate vs date?

查看:23
本文介绍了Solr 日期字段 tdate 与日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个关于 Solr 的字段日期类型的问题,这个问题非常简单:日期"字段和tdate"字段之间有什么区别?

So I have a question about Solr's field date types which is pretty straight forward: what's the difference between a 'date' field and a 'tdate' one?

架构 .xml 声称对于更快的范围查询,请考虑 tdate 类型"和基于 Trie 的日期字段以实现更快的日期范围查询和日期分面.'很公平……但是 precisionStep="6" 是什么意思?我应该改变这个吗?如果我使用 tdate,它会改变我创建查询的方式吗?什么是真正的优势,或者 Solr 做了什么使它变得更好?

The schema .xml claims that 'For faster range queries, consider the tdate type' and 'A Trie based date field for faster date range queries and date faceting. ' Fair enough... but what's the precisionStep="6" all about? should i change this? does it change the way i would create the query in case I use the tdate? What's the real advantage or what does Solr do that makes it better?

P.S 在没有任何运气的情况下浏览了 google、Solr 手册、solr wiki 和 java 文档,所以我希望得到一个友好而解释性的答案:)...还检查了:http://www.lucidimagination.com/blog/2009/05/13/exploring-lucene-and-solrs-trierange-capabilities/http://web.archiveorange.com/archive/v/AAfXfqRYyLnDFtskmLRi

P.S went through google, Solr manual, solr wiki and the java docs without any luck so I'd appreciate a kind and explanatory answer :)... Also checked: http://www.lucidimagination.com/blog/2009/05/13/exploring-lucene-and-solrs-trierange-capabilities/ http://web.archiveorange.com/archive/v/AAfXfqRYyLnDFtskmLRi

推荐答案

基本上,trie 范围更快.这里是一种解释.使用 precisionStep,您可以配置索引可以增长多少以获得性能优势.引用您所指的链接:

Basically trie ranges are faster. Here is one explanation. With precisionStep you configure how much your index can grow to get the performance benefits. To quote from the link you are referring:

更重要的是,它不依赖于索引大小,而是取决于选择的精度.

More importantly, it is not dependent on the index size, but instead the precision chosen.

TrieRange 的唯一缺点是索引大小稍大,因为索引了额外的术语

the only drawbacks of TrieRange are a little bit larger index sizes, because of the additional terms indexed

这篇关于Solr 日期字段 tdate 与日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆