Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9274

suggest.cfq | techproducts | not working | SOLR 6.0.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 6.0.1
    • None
    • Suggester
    • None

    Description

      Hi,

      I am trying to implement SOLR Suggester and Context field as per the SOLR Wiki @ "https://cwiki.apache.org/confluence/display/solr/Suggester#Suggester-ContextFiltering".

      I have updated the solrconfig.xml for techproduct example as :

      <searchComponent name="suggest" class="solr.SuggestComponent">
      <lst name="suggester">
      <str name="name">mySuggester</str>
      <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
      <str name="dictionaryImpl">DocumentDictionaryFactory</str>
      <str name="field">name</str>
      <str name="weightField">price</str>
      <str name="contextField">cat</str>
      <str name="suggestAnalyzerFieldType">string</str>
      <str name="buildOnStartup">false</str>
      </lst>
      </searchComponent>

      Now I am querying SOLR with http://localhost:8983/solr/techproducts/suggest?suggest=true&suggest.build=true&suggest.dictionary=mySuggester&wt=json&suggest.q=c&suggest.cfq=memory

      Still I am not getting any result.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rkapur4 Rajesh Kapur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: