Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solr - most frequent searched words

I'm trying to organize a solr search engine. I've already set up the misspelling system and the suggestions.

However I can't seem to find how to retrieve the top 10 most searched words/terms/keywords in solr/lucene. How can I get this? I want to display those on my homepage.

like image 356
klavs1us Avatar asked Apr 16 '13 11:04

klavs1us


People also ask

How do I search for a phrase in Solr?

We can also do phrase searches on the indexed fields: When we have a phrase like “ Washing Machine “, Solr's standard query parser parses it to “ Washing OR Machine “. To search for a whole phrase, we can only add the expression inside double quotes: We can use proximity search to find words within specific distances.

What are the most searched words on Google?

Most Searched Words on Google. Rank. Keyword. Search Volume. 1. Facebook. 2,147,483,647. 2. Youtube.

What is Apache Solr full-text search?

In this article, we'll explore a fundamental concept in the Apache Solr search engine – full-text search. The Apache Solr is an open source framework, designed to deal with millions of documents. We'll go through the core capabilities of it with examples using Java library – SolrJ. 2. Maven Configuration

How to use suggestions in Solr?

One of the important features that Solr supports are suggestions. If the keywords in the query contain spelling mistakes or if we want to suggest to autocomplete a search keyword, we can use the suggestion feature. 7.1. Spell Checking The standard search handler does not include spell checking component; it has to be configured manually.


1 Answers

Solr does not provide this kind of feature out of the box. There is the StatsComponent, that provides you with all kind of statistics, but all of those are numeric only.

Depending on how you access solr (directly or via your own app) you could intercept all calls an log the query string. I did this in a recent project where I logged a queries to a database. If you submit all keywords to an other core on your solr server, you can faceting queries on your search terms as described by Hyque

like image 130
phisch Avatar answered Nov 15 '22 11:11

phisch