0

I am using solr for indexing data. I need some statistics information like "max , min , stddev" from indexed data. I read about SolrStatsComponent and I used this too.

I read this line on apache_solr_4_cookbook.pdf

"Please be careful when using this component on the multivalued fields as it can be a performance bottleneck."

My Solr Query

http://localhost:8080/solr/daycore/select?q=*:*&stats=true&stats.field=login_attempts&rows=0

Can I use this query?

schema.xml

<field name="login_attempts" type="long" indexed="true" stored="false"/>

Is it affect solr performance?

4

1 回答 1

0

login_attempts您可以针对您定义的字段使用您指定的查询。它不是一个多值字段。多值字段将具有multiValued="true"架构中指定的属性,您没有该属性并定义为

字段可能包含每个文档的多个值,即如果它可以在文档中出现多次

有关更多信息,请参阅Solr wiki 上的SchemaXml 。

于 2013-04-22T11:59:40.710 回答