From solr-user-return-151397-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Fri Jan 10 11:16:22 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id DF83C180657 for ; Fri, 10 Jan 2020 12:16:21 +0100 (CET) Received: (qmail 60781 invoked by uid 500); 10 Jan 2020 11:16:17 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 60767 invoked by uid 99); 10 Jan 2020 11:16:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jan 2020 11:16:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 348C4C0620 for ; Fri, 10 Jan 2020 11:16:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.214 X-Spam-Level: X-Spam-Status: No, score=0.214 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_KAM_HTML_FONT_INVALID=0.01, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hifx-co-in.20150623.gappssmtp.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ipjYqq3uu0BO for ; Fri, 10 Jan 2020 11:16:14 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=209.85.166.180; helo=mail-il1-f180.google.com; envelope-from=dhanesh@hifx.co.in; receiver= Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 356F6BC57A for ; Fri, 10 Jan 2020 11:16:14 +0000 (UTC) Received: by mail-il1-f180.google.com with SMTP id c4so1488995ilo.7 for ; Fri, 10 Jan 2020 03:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hifx-co-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=UrLNs5SEUiNOIoDZeMH92yKEi93RsVX2BmT8nKjbTlw=; b=c58sNDBN9AD3z4gBFKjlEJ8RGhQMLikoYEBC0Sm7SDV55QmLY+AU5yPhhsZKf1WgSq dIUwhEfNVxawp/KN5o6n16bxX0rrD61hh+zUSNqJUD/r+bNETwn7v7PVo26+VzAGTZbq FicPw+Hdg0QM5tAjFqtKdXGxV40j9x9VcD05A27y8xBI2e+6OQqYtw33sMZHRa3f3fVi 8KtNZpeZqC34r3qb/iQsgYBlrq5s3XrHLWV/Tgt4KZqX/iIyQu57xXwFRJ12UFbKc/8B HsGvsiSjOwMWzeYPCshE7KIozXgtRgR01Ti3qyYNXMnHM0IEUsmpXM7hRShh1/Fm8f+z IYyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=UrLNs5SEUiNOIoDZeMH92yKEi93RsVX2BmT8nKjbTlw=; b=LcvRCWQDouGY644L3GeNQojdPuyUeYF4f9y0utdxHL/tGh97gNHXi8iF+wcY0GtlXQ zd8L3Jnbeq0iGYHVr09Y5fPIV6/VqIdzjY9zL4gZwsgkm85wUYDJo8RUYW60v4nNYa5c f0McZLo70BXP7Dtzb1OAaMNveFrA+aeVTI326QTQ6A4Oc4VoovLYQXkaImFrGK1RuUQF N1JH6fATLmqBdvtbkgCh1zbA2xNIFFzLeV6by66rz4bw/ma+j47CEIoGqZQgleA5G05H BiLJH3YODDpR3ErBFBOiTEzJ8bVLmeikSBi3fXTIce4NqPoMLLha4pyKNOpDpIGgFQ6s y2ng== X-Gm-Message-State: APjAAAWNIcqRvGrSZKsKsL06pE0MVIvQ2zT9G+V1TD9KH48XshXjraEw OedujgT0mKT8SUEUmxV+9K/4WXx7eQllH+/5BNvKTnU4wHyZUhw5/EhKPeBx1ArdiP6/akq6xos Sf+131bf0h66us66V0ex8HAUJDpuYhLSVOpTatg== X-Google-Smtp-Source: APXvYqwCENhwjuVB391X2W5gYetGPsvkZ3dxXqSZTJCkJo/XZxFYawQjNviUM4beb8y30yGiD9LqWdgayjVFQWklh08= X-Received: by 2002:a92:5b8b:: with SMTP id c11mr2100288ilg.24.1578654973352; Fri, 10 Jan 2020 03:16:13 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dhanesh Radhakrishnan Date: Fri, 10 Jan 2020 16:45:57 +0530 Message-ID: Subject: Re: Solr suggester : duplicate suggestions To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="000000000000e8f689059bc74091" --000000000000e8f689059bc74091 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable @Paras Lehana.. Thanks for the reply Yes "and" is present in the stop words list. Dhanesh S.RSenior Technical Leade : dhanesh@hifx.co.in | w : www.hifx.in71= 2 t : (+91) 484 4011750 m : (+91) 994 666 6703 On Fri, Jan 10, 2020 at 3:07 PM Paras Lehana wrote: > Hi Dhanesh, > > Although I handle Auto-Suggest, I have worked a little with Suggester > component. Suggester provides results as you type. Do you really need it? > > Also, I don't know if I'm correct, but where have you described '&' to be > replaced with 'and'? Is 'and' present in your stopwords list? > > I think posting the query and results for both cases of first problem wil= l > help us more. > > On Thu, 9 Jan 2020 at 20:50, Dhanesh Radhakrishnan > wrote: > > > Dear all, > > I'm facing two issues with solr suggester component. > > > > *First * > > If I typed "Fire and safety", I'll get the result. But If I type "Fire = & > > safety" suggester is not showing > > > > *Second* > > I'm getting duplicate suggestions in suggester > > > > "suggest": { > > "categorySuggester": { > > "software": { > > "numFound": 100, > > "suggestions": [ > > { > > "term": "Software And Web Development||6070", > > "weight": 0, > > "payload": "" > > }, > > { > > "term": "Software And Web Development||6070", > > "weight": 0, > > "payload": "" > > }, > > { > > "term": "Software And Web Development||6070", > > "weight": 0, > > "payload": "" > > } > > ........ > > ........ > > ........ > > > > ] > > } > > } > > } > > > > > > > > Here is my configuration > > > > In solrconfig.xml > > > > > > > > > > categorySuggester > > AnalyzingInfixLookupFactory > > text_suggest > > DocumentDictionaryFactory > > categoryAutoComplete > > categoryRank > > false > > false > > /dictionary/category > > true > > false > > > > > > > > > > > > In schema.xml > > > > > stored=3D"true" multiValued=3D"true" /> > > > > > > > positionIncrementGap=3D"100"> > > > > > > > generateWordParts=3D"1" generateNumberParts=3D"1" catenateWords=3D"1" > > catenateNumbers=3D"1" catenateAll=3D"0" splitOnCaseChange=3D"1"/> > > > > > > > words=3D"stopwords.txt"/> > > > ignoreCase=3D"true" expand=3D"true" > > tokenizerFactory=3D"solr.KeywordTokenizerFactory"/> > > > > > > > > > > > > > > > http://localhost:8983/solr/core-name/suggest?suggest=3Dtrue&suggest.q=3Ds= oftware&suggest.build=3Dfalse&suggest.dictionary=3DcategorySuggester&wt=3Dj= son > > > > Please help > > > > Thanks & Regards, > > dhanesh s r > > > > > > Dhanesh S.RSenior Technical Leade : dhanesh@hifx.co.in | w : > > www.hifx.in712 > > t : (+91) 484 4011750 > > m : (+91) 994 666 6703 > > > > -- > > IMPORTANT: This is an e-mail from HiFX IT Media Services Pvt. Ltd. Its > > content are confidential to the intended recipient. If you are not the > > intended recipient, be advised that you have received this e-mail in > error > > and that any use, dissemination, forwarding, printing or copying of thi= s > > e-mail is strictly prohibited. It may not be disclosed to or used by > > anyone > > other than its intended recipient, nor may it be copied in any way. If > > received in error, please email a reply to the sender, then delete it > from > > your system. > > > > Although this e-mail has been scanned for viruses, HiFX > > cannot ultimately accept any responsibility for viruses and it is your > > responsibility to scan attachments (if any). > > > > =E2=80=8BBefore you print this email > > or attachments, please consider the negative environmental impacts > > associated with printing. > > > > > -- > -- > Regards, > > *Paras Lehana* [65871] > Development Engineer, Auto-Suggest, > IndiaMART Intermesh Ltd. > > 8th Floor, Tower A, Advant-Navis Business Park, Sector 142, > Noida, UP, IN - 201303 > > Mob.: +91-9560911996 > Work: 01203916600 | Extn: *8173* > > -- > * > * > > > --=20 IMPORTANT: This is an e-mail from HiFX IT Media Services Pvt. Ltd. Its=20 content are confidential to the intended recipient. If you are not the=20 intended recipient, be advised that you have received this e-mail in error= =20 and that any use, dissemination, forwarding, printing or copying of this=20 e-mail is strictly prohibited. It may not be disclosed to or used by anyone= =20 other than its intended recipient, nor may it be copied in any way. If=20 received in error, please email a reply to the sender, then delete it from= =20 your system.=20 Although this e-mail has been scanned for viruses, HiFX=20 cannot ultimately accept any responsibility for viruses and it is your=20 responsibility to scan attachments (if any). =E2=80=8BBefore you print this email=20 or attachments, please consider the negative environmental impacts=20 associated with printing. --000000000000e8f689059bc74091--