I am doing two very identical queries into Solr for the same search term, it gives me different results. Actually one is done using Solr Admin interface and another is using SolrNet - Client library.
Can anyone give me any explanation why this is happening, or what's wrong and how to fix. I'm out of idea!
http://localhost:8983/solr/demo/select?q=black%20samsung%20android%20smart%20phone&wt=json&indent=true&defType=edismax&mm=75%25
Gives 816 results - this one is done using Solr Admin.
http://localhost:8983/solr/demo/select?q=black%20samsung%20android%20smart%20phone&start=0&rows=2&qt=edismax&mm=75%25
Gives 10224 results - this one is done using SolrNet.
I have total 80k + test products.
The correct result is produced by doing query by Solr Admin.
The problem in the second query might be qt=edismax! Do you have defined any request handler like that?
I would suggest you to define defType in extra param while querying Solr using SolrNet.
Related
I am trying increase the amount of term facets returned from a query.
I have first added -1 to the request handler in solrconfig.xml. It works fine if I query solr servers directly, but once I try to use the same query on Solrj client, it is still returns only 10 facets in the response. I have tried to add facet.limit param to the query explicitly for solrj, but still I am only seeing 10 facets in the response. Are there any kind of other params or configs needed for solrj to use unlimited amount of facets or increase the number of facets to something bigger than the default value?
p.s I have initially tried to post the question on the mail list of Solr, but for some reason it failed constantly to post there
edit: I have tried to use direct solr querying with the json.facets, and setting facet.limit value does not work work json.facets.
Okay, it was basically the json.facet part. Although the docs on https://lucene.apache.org/solr/guide/7_2/json-facet-api.html are for 7.2, the same rule applies for 6.1.0.
It is seriously confusing though, as setting the facet.limit value via solrconfig.xml or Solrj client fails silently and there docs do not mention about the issue for json.facets
I'm moving a search from coldfusion 9 verity to coldfusion 10 solr, but i'm getting some weird results.
For example; if i search for "Fishing and Camping England" including the quotation marks on verity i get 7 results, and as you'd expect the results contain the correct phrase "Fishing and Camping England"
But when i search on solr, i get 1 result, and its a result i didn't get back previously. The context shows;
about fish! Camping England and
If i search the solr collection using different search terms, the results/documents i want are actually there. Is there something strange with solr and search terms in quotation marks? I looked on the Adobe site for solr terms, and it seems it should be fine. Buts it not! I get the same strange results on our local development server and our remote server.
For this example i changed the actual search words, but I hope you get the idea.
There is difference between working of verity and solr search engine. verity is classic search engine where as Solr is modern.Solr is more robust and fast. Raymond Camden have explained it well in his blog.
For difference in result in solr you have to chose a proper serach syntax that will return you desired result. Solr support multiple search syntax to find matching result. Here is some example of solr search syntax.
I have done an extensive search and found example curl commands contain REST requests,
but I have not come across a document that lists all of the available commands and their
options. Does such a document exist?
The good places to start are the following:
Solr Reference Guide: Searching
Solr Common Query Parameters
Solr Query Syntax (as #Wils commented above)
XML Messages for Updating a Solr Index
I have a single Solr instance for indexing multiple sites content.
While indexing I am populating Website field to be able to perform faceted search on that field for every particular website...and that works ok.
Though, if I use Solr MLT feature I get results from all websites, and I want to narrow MLT results down just to the single website.
Is it possible to define facet for the Solr MLT or is there any other better way to achieve the same?
If Solr supports that, is it also available in solrnet?
Solr 3.1 doesn't support filters on the MoreLikeThis component (issue here). You have to use the MoreLikeThis handler, but this handler is not currently implemented in SolrNet (issue here). available as of 0.4.0 beta 1
Hey Guys,
Im trying to implement some search functionality to an application were writing.
Solr 1.4.1 running on Tomcat7
JDBC connection to a MS SQLServer with the View im indexing
Solr has finished indexing and the index is working.
To search and communicate with Solr i have created a little test WCF service (to be implemented with our main service later).
The purpose is to implement a textfield in our main application. In this text field the users can start typing something like Paintbrush and gradually filter through the list of objects as more and more characters are input.
This is working just fine and dandy with Solr up to a certain point. Im using the Wildcard asterisk in the end of my query and as such im throwing a lot of requests like
p*
pa*
pain*
paint*
etc. at the server and its returning results just fine (quite impressively fast actually). The only problem is that once the user types the whole word the query is paintbrush* at which point solr returns 0 results.
So it seems that query+wildcard can only be query+something and not query+nothing
I managed to get this working under Lucene.Net but Solr isnt doing things the same way it seems.
Any advice you can give me on implementing such a feature?
there isn't much code to look at since im using SolrNet: http://pastebin.com/tXpe4YUe
I figure it has something to do with the Analyzer and Parser but im not yet that into Solr to know where to look :)
I wouldn't implement suggestions with prefix wildcard queries in Solr. There are other mechanisms better suited to do this. See:
Simple Solr schema problem for autocomplete
Solr TermsComponent: Usage of wildcards
Stemming seems to be what caused the problem. I fixed it using a clone of text_ws instead of text for the type.
My changes to scema.xml : http://pastebin.com/xaJZDgY4
Stemming is disabled and lowercase indexing is enabled. As long as all queries are in lower case they should always give results (if there at all).
Issue seems to be that Analyzers dont work with Wildcards, so the logic that would make Johnny the result of Johni or Johnni is "broken" when using wildcards.
If your facing similiar problems and my solution here doesnt quite work you can add debugQuery=on to your query string and see a bit more about whats going on. That helped me narrow down the problem.