Solr Suggest Component with weight expression returns no suggestions
I am having difficulty getting Solr's Suggest Component to work with a weight expression. I have tried to match the format of the example in the documentation (see related code from schema.xml and solrconfig.xml below) but no results are found when I request suggestions from this dictionary and there are no logging errors or exceptions. Am I missing something or do I have an incorrect parameter? schema: solrconfig: SuggesterX DocumentExpressionDictionaryFactory FuzzyLookupFactory product_name (weight_one + weight_two) weight_one weight_two text_suggest true 5 SuggesterX suggest Christine
FreeTextSuggester exception: need at least one suggestion
Hi fellow Solr Suggesters, I am getting an exception when building the suggester index for: FreeTextSuggester… java.lang.IllegalArgumentException: need at least one suggestion at org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.build(FreeTextSuggester.java:300) at org.apache.lucene.search.suggest.analyzing.FreeTextSuggester.build(FreeTextSuggester.java:247) at org.apache.lucene.search.suggest.Lookup.build(Lookup.java:190) at org.apache.solr.spelling.suggest.SolrSuggester.build(SolrSuggester.java:181) at org.apache.solr.handler.component.SuggestComponent$SuggesterListener.buildSuggesterIndex(SuggestComponent.java:529) at org.apache.solr.handler.component.SuggestComponent$SuggesterListener.newSearcher(SuggestComponent.java:511) at org.apache.solr.core.SolrCore.lambda$getSearcher$17(SolrCore.java:2275) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:188) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.base/java.lang.Thread.run(Thread.java:844) What does it mean by at least one suggestion? I have ngrams=2, does this mean that it requires document fields to be at least 2 word/tokens? I have tried testing with only >2 and still get an exception. Christine
Scores with Solr Suggester
Is it possible to return a score field for Suggester results like it does with standard search? I am looking for the score which quantifies how close of a match between type entered and suggestion result (not the weight associated with the suggestion). Is this possible? Christine Buckler [id:image001.png@01D3F81F.AF489300]christinebuckler [id:image002.png@01D3F81F.AF489300]206.295.6772
start with techproducts example in docker
What is the correct syntax to start the techproducts example in docker? I am using “$ docker run --name tech-demo -d -p 8983:8983 -t solr –e techproducts“ which immediately exits.
Re: How to restart solr in docker?
That makes sense. I am trying to add the “Suggest” plugin so I modified the solrconfig.xml file. Is there a better way to do what I am trying to do? I have not been able to add the plugin successfully. Do you have a resource page that shows how to add the config file under a volume? On 12/16/17, 3:17 AM, "alexpusch"wrote: While I don't know what exact solr image you use I can tell you this: 1. The command of your dockerfile probably starts solr. A Docker container will automatically shutdown if the process that was started by it's command is killed. Meaning you should never 'restart' a process in a container, but restart the container as a whole. 2. You need to make sure your solrconfig.xml is under a docker volume of some kind. If it is not, your changes will not take effect since after the container restart the solrconfig.xml will revert to the version that is in the image. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
How to restart solr in docker?
What is the command for restarting solr on a docker image? I have modified the solrconfig.xml to add the suggest plugin and now I want to update to reflect this change. I was able to stop solr using “$ docker exec -it my_solr stop all” but now I can’t figure out how to restart. Thanks, Christine Buckler
How to restart solr in docker?
What is the command for restarting solr on a docker image? I have modified the solrconfig.xml to add the suggest plugin and now I want to update to reflect this change. I was able to stop solr using “$ docker exec -it my_solr stop all” but now I can’t figure out how to restart. Thanks, Christine Buckler