Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solr Index appears to be valid - but returns no results

Tags:

solr

Solr newbie here.

I have created a Solr index and write a whole bunch of docs into it. I can see from the Solr admin page that the docs exist and the schema is fine as well. But when I perform a search using a test keyword I do not get any results back.

  1. On entering * : *

    into the query (in Solr admin page) I get all the results.

  2. However, when I enter any other query (e.g. a term or phrase) I get no results. I have verified that the field being queried is Indexed and contains the values I am searching for.

So I am confused what I am doing wrong.

like image 467
Mikos Avatar asked Aug 16 '10 13:08

Mikos


People also ask

How do I know if Solr is indexing?

In the left column, select 'liferay' under the Core Selector drop-down, and navigate to the query page. Make a query of any content that should be displayed in the Liferay UI. If the appropriate index results are outputted on the right, this confirms that the content is indexed.

How do I run Solr indexing?

If you didn't start Solr after installing it, you can start it by running bin/solr from the Solr directory. If you are running Windows, you can start Solr by running bin\solr. cmd instead. This will start Solr in the background, listening on port 8983.

How does Solr indexing work?

Solr works by gathering, storing and indexing documents from different sources and making them searchable in near real-time. It follows a 3-step process that involves indexing, querying, and finally, ranking the results – all in near real-time, even though it can work with huge volumes of data.

What is the default return type of Solr request?

start Parameter The default value is 0 . In other words, by default, Solr returns results without an offset, beginning where the results themselves begin.


1 Answers

Probably you don't have a <defaultSearchField> correctly set up. See this question.

Another possibility: your field is of type string instead of text. String fields, in contrast to text fields, are not analyzed, but stored and indexed verbatim.

like image 92
Mauricio Scheffer Avatar answered Sep 23 '22 05:09

Mauricio Scheffer