SOLR Search not returing results - solr

I am setting SOLR search engine to my website. I have installed SOLR and modifed the SOLRconfig.xml and SChema.xml according to my requirements. Now when i use search all results returing 0 matching. Is anything else to be configured other than this. Kindly advice.
Thanks

I see you haven't mentioned that you indexed anything to the solr. So if there is no index, it will return 0 results. Index some data and it will work

Related

Solr no content field = no highlighting

I want to add highlighting to my search result from Solr. My problem is the query don't contain any content field.
Search seems to work, but I guess that when I create the index I need to tell Solr to stored the texts or something.
I am running Solr on Windows.
java -Dc=aceapps -Dauto=yes -Ddata=files -Drecursive=yes -Dfiletypes=pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html -jar example/exampledocs/post.jar "\user\PowerBI"
Hard to answer when we don't know your schema.xml or solrconfig.xml
Have a look at the Wiki for the standard highlighter:
https://cwiki.apache.org/confluence/display/solr/Standard+Highlighter
Solr also comes with an example core called techproducts and in there is a good example of highlighting. Look at the request handler and highlighter in the solrconfig.xml and the fields it's being applied to in that example.

Solr Cloud - Facets

I am trying to get facets returned in SoLR Cloud. I don't see the FACETS in the response.
localhost:8983/solr/select?q=:&facet=true&facet.field=area&defType=lucene&debug=true
I didn't see any discussions around this. As faceting is a key feature, I believe it will be supported in Cloud too.
Is there anything I can check? Kindly suggest.
You have to enable faceting.
Try adding &facet=true

Any way to see the inverted index of a doc in SOLR

I am wondering if there is a way to look at the inverted index of a doc in SOLR? I checked solr admin tool but couldn't find anything.
Check the LukeRequestHandler within Solr, should enable you to get the index data.
there is Luke but lately is is not being upgraded to latest lucene version, someone will recompile it soon probably.

Solr field collapsing

I read
http://wiki.apache.org/solr/FieldCollapsing
and I tried the query
http://192.168.0.1:8080/solr/append/select?q=mobile&group=true&group.field=brand
and I don't see the field collapsing. I mean I see the results, but not the grouping. My understanding is it should work, nothing to change in the solrconfig.xml ? In my schema, all my field are stored/index. My index is Lucene 2.9 and my Solr is 1.4.1. I don't see what I doing wrong...
Field collapsing is not available in Solr 1.4.1. You need Solr 3.3 or 4.0 (currently unreleased).
The wiki page about field collapsing also explains "If you haven't already, get a recent nightly build of Solr4.0 or Solr3.3..."
Look for "warning tags" in the Solr wiki that show when a particular feature is available only since a particular version of Solr:

Solr match all aka *:* does not work

Don't know what I did wrong. I have two indices with identical documents in it. The local index was replicated from a master which responds correctly, so the same solrconfig.xml and schema.xml file. But if I query the index on my local machine with *:* I get 0 docs. (other queries on my local machine are working correct)
I tried jetty and tomcat for the local index. no success.
The *:* behaviour is crucial for me, because some test cases are failing now. Do you have an idea what could be wrong?
You probably have dismax set up as the default query handler instead of the standard one. Check your solrconfig.xml.
Simply remove q=*:* from the query to get all results with dismax

Resources