In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains the "solr automatic clustering how to achieve", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "solr automatic clustering how to achieve" it!
Solr uses Carrot2 to complete the clustering function, which can automatically classify the retrieved content. Carrot2 clustering example:
For Solr to support clustering, it is preferred to copy the dist/ solr-clustering-4.2.0.jar in the Solr distribution to\ solr\ contrib\ analysis-extras\ lib. Then open solrconfig.xml to add configuration:
Default
Org.carrot2.clustering.lingo.LingoClusteringAlgorithm
thirty
0.70
0
Org.carrot2.clustering.lingo.SimpleLabelAssigner
1.5
eight
eight
HIGH
Org.carrot2.matrix.factorization.NonnegativeMatrixFactorizationEDFactory
37500
2.0
0.9
Org.carrot2.text.vsm.TfTermWeighting
CHINESE_SIMPLIFIED
Org.carrot2.text.clustering.MultilingualClustering.LanguageAggregationStrategy.FLATTEN_MAJOR_LANGUAGE
True
True
True
True
True
True
True
0.65
False
two
True
one
one
Clustering/carrot2
Id
After the clustering component is configured, configure requestHandler as follows:
Explicit
True
Default
True
Category_s
Content
Path
True
Clustering
There are two parameters to note that carrot.title,carrot.snippet is the comparative calculation field of clustering, these two parameters must be stored= "true" .carrot.title is more important than carrot.snippet, if there is only one calculated field carrot.snippet can be removed (is removed, not empty). After setting it up, you can use the following URL to query it.
Http://localhost:8080/skyCore/clustering?q=*%3A*&wt=xml&indent=true
Thank you for your reading, the above is the content of "how to achieve solr automatic clustering", after the study of this article, I believe you have a deeper understanding of how to achieve solr automatic clustering, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.