exactMatchFirst Solr Suggestion Component
Hi All, Would anyone be able to help me debug my suggestion component? Right now, our config looks like this: mySuggester FuzzyLookupFactory FileDictionaryFactory ./conf/queries_list_with_weights.txt , conf keywords_w3_en false We like the idea of the FuzzyLookupFactory because of how it interacts with misspelled prefixes. However, we are finding that the exactMatchFirst parameter, which is supposed to be set to true by default in the code, is NOT showing exact match prefixes first. I think this is because of the weights we have with each term. However, the documentation specifically states that exactMatchFirst is meant to ignore weights (https://builds.apache.org/view/L/view/Lucene/job/Solr-reference-guide-8.x/javadoc/suggester.html#fuzzylookupfactory). For the prefix "box" this is what our suggestions list looks like. You can see that "bond" is above other results I would expect to be above it, such as "box@ibm," etc.: { "responseHeader":{ "status":0, "QTime":112}, "command":"build", "suggest":{"mySuggester":{ "box":{ "numFound":8, "suggestions":[{ "term":"box", "weight":1799, "payload":""}, { "term":"bond", "weight":805, "payload":""}, { "term":"box@ibm", "weight":202, "payload":""}, { "term":"box at ibm", "weight":54, "payload":""}, { "term":"books", "weight":45, "payload":""}, { "term":"box drive", "weight":34, "payload":""}, { "term":"books 24x7", "weight":31, "payload":""}, { "term":"box sync", "weight":31, "payload":""}] Any help is greatly appreciated! Best, Audrey
RE: Solr Suggestion not working in solr PLZ HELP
Hello Thanks for response. :) I am new in solr it better can you tell me steps of configration I need to do to reslove this issue. Appericate your help. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Suggestion-not-working-in-solr-PLZ-HELP-tp4159351p4159582.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Solr Suggestion not working in solr PLZ HELP
Hi Vaibhav, Could you check with the directory *suggest.dictionary* mySuggester is present or not, try making it with mkdir, if still problem persist try giving full path. I found good article in below link check with that too. [http://romiawasthy.blogspot.com/2014/06/configure-solr-suggester.html] Regards,Amey> Date: Wed, 17 Sep 2014 00:03:33 -0700 > From: vaibhav.h.pa...@gmail.com > To: solr-user@lucene.apache.org > Subject: Solr Suggestion not working in solr PLZ HELP > > Suggestion > In solrconfig.xml: > > > mySuggester > FuzzyLookupFactory > DocumentDictionaryFactory > content > > string > > > > > > true > 10 > mySuggester > > > suggest > > > > > -- > > > Suggestion: localhost:28080/solr/suggest?&q=foobat > > above throwing exception as below > > > 500 name="QTime">12No suggester > named default was configured name="trace">java.lang.IllegalArgumentException: No suggester named default > was configured > at > org.apache.solr.handler.component.SuggestComponent.getSuggesters(SuggestComponent.java:353) > at > org.apache.solr.handler.component.SuggestComponent.prepare(SuggestComponent.java:158) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) > at > org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:241) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) > at > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418) > at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) > at > org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:559) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) > at java.lang.Thread.run(Thread.java:745) > 500 > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-Suggestion-not-working-in-solr-PLZ-HELP-tp4159351.html > Sent from the Solr - User mailing list archive at Nabble.com.
Solr Suggestion not working in solr PLZ HELP
Suggestion In solrconfig.xml: mySuggester FuzzyLookupFactory DocumentDictionaryFactory content string true 10 mySuggester suggest -- Suggestion: localhost:28080/solr/suggest?&q=foobat above throwing exception as below 50012No suggester named default was configuredjava.lang.IllegalArgumentException: No suggester named default was configured at org.apache.solr.handler.component.SuggestComponent.getSuggesters(SuggestComponent.java:353) at org.apache.solr.handler.component.SuggestComponent.prepare(SuggestComponent.java:158) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:241) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:559) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) at java.lang.Thread.run(Thread.java:745) 500 -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Suggestion-not-working-in-solr-PLZ-HELP-tp4159351.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr suggestion -
Yes. I understood that from the result. But how do I change that behaviour? "Don't do any analysis on the field you are using for suggestion" Please elaborate. On Mon, Sep 9, 2013 at 8:48 PM, tamanjit.bin...@yahoo.co.in < tamanjit.bin...@yahoo.co.in> wrote: > Don't do any analysis on the field you are using for suggestion. What is > happening here is that query time and indexing time the tokens are being > broken on white space. So effectively, "at" is being taken as one token and > "l" is being taken as another token for which you get two different > suggestions. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/solr-suggestion-tp4087841p4088919.html > Sent from the Solr - User mailing list archive at Nabble.com. >
Re: solr suggestion -
Don't do any analysis on the field you are using for suggestion. What is happening here is that query time and indexing time the tokens are being broken on white space. So effectively, "at" is being taken as one token and "l" is being taken as another token for which you get two different suggestions. -- View this message in context: http://lucene.472066.n3.nabble.com/solr-suggestion-tp4087841p4088919.html Sent from the Solr - User mailing list archive at Nabble.com.
solr suggestion -
the following request http://127.0.0.1:8983/solr/vault/suggest?wt=json&q=at%20l Returns phrases that starts with at and with l (as shown below ) Now, what if I want phrases that starts with "At l" such as "At Least..." Thanks. { - responseHeader: { - status: 0, - QTime: 1 }, - spellcheck: { - suggestions: [ - "at", - { - numFound: 1, - startOffset: 1, - endOffset: 3, - suggestion: [ - "atrion" ] }, - "l", - { - numFound: 2, - startOffset: 4, - endOffset: 5, - suggestion: [ - "lot", - "loadtest_template_700" ] }, - "collation", - ""atrion lot"" ] } }
Dynamically field selection for Solr Suggestion (Spellcheck) multiple term query
Hello everybode. I already posted this question on stackoverflow but didn't get an answer. I am using the solr suggestion component with the following configuration: schema.xml solrconfig.xml suggest org.apache.solr.spelling.suggest.Suggester org.apache.solr.spelling.suggest.tst.TSTLookup spell true true suggest true 6 true true true 6 1000 true 100% suggest query As you can see there is a field spell wich i am using for a suggestion queries. This works great even for multiple term queries. But what I need is to search on selected fields only. So for example I want valid suggestions only for the fields image_memo and username The user can dynamicly add and remove fields to search. I know that I could do something like this: q=(image_memo:*search* OR image_username:*search*) But this is is slowing down dramtically if you got a lot of fields and a multiple term query. Example: Searching in Field memo, username, field, field1 and field2 for term, term1 and term2. ((memo:term OR username:term OR field:term OR field1:term OR field2:term) AND (memo:term1 OR username:term1 OR field:term1 OR field1:term1 OR field2:term1) AND (memo:term2 OR username:term2 OR field:term2 OR field1:term2 OR field2:term2)) Is there any way to dynamically select the spell fields. Or is there a way that I can search for specific fields only in a multivalued field I am using Apach Solr 4 Alpha. -- View this message in context: http://lucene.472066.n3.nabble.com/Dynamically-field-selection-for-Solr-Suggestion-Spellcheck-multiple-term-query-tp4009120.html Sent from the Solr - User mailing list archive at Nabble.com.