I'm evaluating vespa, but couldn't find any reference to faceted search (https://lucidworks.com/2009/09/02/faceted-search-with-solr/) in vespa.ai documentation. Is there a similar feature in vespa?
I think you are looking for Vespa's grouping feature
Yes, we call it grouping. See https://docs.vespa.ai/documentation/grouping.html & https://docs.vespa.ai/documentation/reference/grouping-syntax.html
Related
I have a solr core named Search Stats with fields
query
search_count
number_of_clicks
added_to_cart
order_placed
I want a scoring function so that I can boost the docs according to the data.
This data is actually want to use for showing suggestions.
I have already used the sort function. suggest me some boost function other than sorting.
you can specify the same in Solr that you want to retrieve the score of every document using q=colour Plus&fl=*,score
Read more on this in below link
http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_see_the_relevancy_scores_for_search_results
Lucene/Solr, provides TF-IDF (VSM based) scoring strategy.
The below link highlights more about TF and other terms
http://www.solrtutorial.com/solr-search-relevancy.html
There are three boost methods you can use: boost, bf, and bq. Nicely laid out here. The boost function can be used generally, and the bf and bq are specific to edismax and dismax. See the solr wiki here and here. There are also index-time boosts, as described in the first wiki link above.
I'm using solr 4.5.
I would like to customize solr score using in my "formula" the termFreq and PhraseFreq (it depend if in the query i have an term or a phrase).
Now I'm using in a url request the param:
sort=myFormula desc
it works but my problem is that in output i want also the output of my formula, now the solution is or to put the formula also into fl param or to customize the score :) and i'm looking for the last one solution.
Please, do you have any suggest or link/guide to give me to learn how is it possible customize the solr score? I'm searching on google but no results relevant.
Thanks in advance.
How about implementing your own CustomScoreQuery? The second example here as well as this blog post talk about how to do it.
I'm working with Solr 4.1, and got it working correctly. I have the terms in the document which contains "school". It gives search result correctly when searching for "school". However, I want Solr to include these results when searching for "schools".
So basically I want Solr to include singular terms in its search results when searching for plural terms.
Any idea how to do it?
You need to apply stemming to your indexed fields in order to achieve this behavior. Please see the Stemming Wiki Page for a complete explanation and an example fieldType to support stemming.
have long since I have been researching, but so far have not found anything to solve my problem. I'm trying to create a filter for Solr, which add a TOKEN. For example, the entry is "Football" and the output is "Football" and "Brazil." If possible I would like a practical example. Thanks in advance.
Instead of a filter you can use SynonymFilterFactory to add Synonyms as mentioned in your example.
This will allow you map terms and related terms, which would get added to the index.
Is there any way I can user a NOT or other negation operator before a text search keyword for example,
NOT program
When I do such a search there are 0 records returned.
Please let me know some way to achieve this option.
In Solr you can use the '-' minus sign as a NOT operator, so you would change your query to be
*:* - program
If you are using SolrNet, since that is how your question is tagged, you can do the following
solr.Query(new SolrQuery("*:*") && !new SolrQuery("program"));
Please see Querying in SolrNet for more details.
Updated: Per comment from Mauricio Scheffer
There aren't any search operators that perform the search parameters you are describing. My advice is to use the Google advanced search features. You can make your search much more specific in a number of ways, its really advanced.