Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D3D7102F9 for ; Tue, 27 Aug 2013 14:54:55 +0000 (UTC) Received: (qmail 12151 invoked by uid 500); 27 Aug 2013 14:54:53 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 12085 invoked by uid 500); 27 Aug 2013 14:54:52 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 11953 invoked by uid 99); 27 Aug 2013 14:54:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 14:54:52 +0000 Date: Tue, 27 Aug 2013 14:54:52 +0000 (UTC) From: "Maciej Niemczyk (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (SOLR-5191) spellcheck.maxResultsForSuggest is ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-5191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751325#comment-13751325 ] Maciej Niemczyk edited comment on SOLR-5191 at 8/27/13 2:54 PM: ---------------------------------------------------------------- nope. I turned the true on and still find my self in exactly the same situation. Request: {code} {status=0,QTime=75,params={spellcheck=true,facet=true,sort=sortDate desc,facet.limit=15,spellcheck.q=Microsoft,facet.range=updatedAt,facet.range.gap=+1YEAR,hl=true,version=2,facet.range.start=NOW/YEAR-10YEARS,facet.field=[categories, language],fq=[-documentType:userSearch, -status:deleted],spellcheck.build=true,hl.fragsize=150,facet.mincount=1,spellcheck.maxResultsForSuggest=10000,spellcheck.extendedResults=true,qf=title^8 categories^3 content all^0.5,facet.range.end=NOW/YEAR+1YEAR,hl.fl=title,content,teaser,wt=javabin,spellcheck.collate=true,defType=edismax,spellcheck.onlyMorePopular=true,rows=10,start=0,q=Microsoft}} {code} response is exactly the same as above. i also tried with a less complicated field for spell: {code} {code} but thats also not the problem was (Author: macilias): nope. I turned the true on and still find my self in exactly the same situation. > spellcheck.maxResultsForSuggest is ignored > ------------------------------------------ > > Key: SOLR-5191 > URL: https://issues.apache.org/jira/browse/SOLR-5191 > Project: Solr > Issue Type: Bug > Components: spellchecker > Affects Versions: 4.3 > Environment: Mac Os X, java 7 version "1.7.0_21" > Reporter: Maciej Niemczyk > > Given a request with spellcheck.maxResultsForSuggest = 1 the response should has spellchecked = true if there are some hits according to SOLR-3457 and SOLR-2585. > request (taken from response header): > {code} > {status=0,QTime=28,params={spellcheck=true,facet=true,sort=sortDate desc,facet.limit=15,spellcheck.q=Microsoft,facet.range=updatedAt,facet.range.gap=+1YEAR,hl=true,version=2,facet.range.start=NOW/YEAR-10YEARS,facet.field=[categories, language],fq=[-documentType:userSearch, -status:deleted],spellcheck.build=true,hl.fragsize=150,facet.mincount=1,spellcheck.maxResultsForSuggest=1,spellcheck.extendedResults=false,qf=title^8 categories^3 content all^0.5,facet.range.end=NOW/YEAR+1YEAR,hl.fl=title,content,teaser,wt=javabin,spellcheck.collate=true,defType=edismax,spellcheck.onlyMorePopular=true,rows=10,start=0,q=Microsoft}} > {code} > The HitCount is: response.getResults().getNumFound() = 5541 > And by the way its also the same Response with arbitrary spellcheck.maxResultsForSuggest, even beyond 5541. > Spellcheck Response: > {code} > _spellResponse: > correctlySpelled = false > collations = null > suggestions = ArrayList (size = 0) > suggestionMap = LinkedHashMap (size = 0) > {code} > My configuration is very close to the default provided one. > solrconfig.xml: > {code} > > > explicit > 10 > text > > direct > > wordbreak > > true > > false > > 10 > 1 > > > spellcheck > > > > textSpell > > direct > spell > solr.DirectSolrSpellChecker > internal > 0.5 > 2 > 1 > 5 > 4 > 0.01 > .0001 > > > wordbreak > solr.WordBreakSolrSpellChecker > spell > true > true > 3 > > > {code} > schema.xml: > {code} > > > > > > > > > > > > > > > > > > > > > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org