Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A88D7200BEA for ; Tue, 13 Dec 2016 02:23:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A71E6160B2A; Tue, 13 Dec 2016 01:23:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F0ADC160B22 for ; Tue, 13 Dec 2016 02:23:49 +0100 (CET) Received: (qmail 78897 invoked by uid 500); 13 Dec 2016 01:23:48 -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 78881 invoked by uid 99); 13 Dec 2016 01:23:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2016 01:23:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BAFD4185F0E for ; Tue, 13 Dec 2016 01:23:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.381 X-Spam-Level: ** X-Spam-Status: No, score=2.381 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id x-hUqUGFPZiu for ; Tue, 13 Dec 2016 01:23:46 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id AC3FE5FC2A for ; Tue, 13 Dec 2016 01:23:45 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id g23so15021318wme.1 for ; Mon, 12 Dec 2016 17:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc; bh=W5V3kqgQXmRz2TGr3/HkqDqRfLwlmNizVRHGKwkfh28=; b=i9jgaEY5Ahq2URBjqUmWqjb7uTgLpnfrPy2pk8Z3vKSD5lxZYVNWm7M3mgv1VwvDyA cdnHIlKV2T6aXB5ncejCPXARnBV8tE0muao4S7OtcupV1mWnxhUvtG4/ttodWHGzmSKs ev6rTmclwy8i5LAEjit9eeYrBMd94TIquh8elYTOvU4aU8inMwu8C1M2sEzFoxsV4qAd 0QxCZs2YQuSgvzcP53hR5jfiXvnlYsSpbkBF1FqeiH8Z5tKzuk10dJ95Xee7c9Z/LM4g 6NaI3xsSnRGrYaUCAJ0Co/vUwsf4/R2SDER/j3B8Eg19Bey5rQ2sl2zprkPrpchX3cxc k4xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=W5V3kqgQXmRz2TGr3/HkqDqRfLwlmNizVRHGKwkfh28=; b=CkJMqAGyuq9fVQfb/s+Ie+uZQVopG6vAoZnhMjoLkqUIZnjNI2euSFTkZateEURcQh hfmwt1NESDcmBjd5qe/f6r2nutwe7l3ioLhvSQVAOO1QalgtfixO8pf7/5sjuXjOGK+Y vaV6mBFVd0UKRRsi86UP+3+0fqB7fqrW6yCUfkfJYjtXaIfLSYG+edd/hAepPvwehlpI YlRZ/1uexhLtmEa2qJDgsIzRV3PT7TSEtn3b60v6x+Um3eF7aNHTg26uBwc4H/jCbDOO 3MuYhU8qQeclt2Vc1oGPp7UYbbDJpv5x/Qxjo/JdbcJZqfn7hpqkR2F/if7sl9NC7NC+ f+Vw== X-Gm-Message-State: AKaTC00VGOyzZ2syawrJ23GOoP3v4H5jh7AxK/JtHItHFsPzoOgDo2fTMa/WOKAM+vQYZinQkImBjijcvKmVWw== X-Received: by 10.28.30.207 with SMTP id e198mr279058wme.74.1481592224276; Mon, 12 Dec 2016 17:23:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.221.85 with HTTP; Mon, 12 Dec 2016 17:23:43 -0800 (PST) From: KV Medmeme Date: Mon, 12 Dec 2016 20:23:43 -0500 Message-ID: Subject: (Newbie Help!) Seeking guidance in regards to Solr's suggestor and others To: solr-user@lucene.apache.org Cc: kv.medmeme@gmail.com Content-Type: multipart/alternative; boundary=001a114b37ce3aeae20543801265 archived-at: Tue, 13 Dec 2016 01:23:50 -0000 --001a114b37ce3aeae20543801265 Content-Type: text/plain; charset=UTF-8 Hi Friends, I'm new to solr, been working on it for the past 2-3 months trying to really get my feet wet with it so that I can transition the current search engine at my current job to solr. (Eww sphinx haha) anyway I need some help. I was running around the net getting my suggester working and im stuck and I need some help. This is what I have so far. (I will explain after I posted links to the config files) here is a link to my managed-schema.xml http://pastebin.com/MiEWwESP solr config.xml http://pastebin.com/fq2yxbvp I am currently using Solr 6.2.1, my issue is.. I am trying to build a suggester that builds search terms or phrases based off of the index that is in memory. I was playing around with the analyzers and the tokenizers as well as reading some very old books that touch base on solr 4. And I came up with this set of tokenizers and analyzer chain. Please correct it if its wrong. But my index contains Medical Abstracts published by Doctors and terms that I would really need to search for are "brain cancer" , "anti-inflammatory" , "hiv-1" kinda see where im going with? So i need to sorta preserve the white space and some sort of hyphen delimiter. After I discovered that, (now here comes the fun part) I type in the url: http://localhost:8983/solr/AbstractSuggest/suggest/?spellcheck.build=true then after when its built I query, http://localhost:8983/solr/AbstractSuggest/suggest/?spellcheck.q=suggest_field:%22anti-infl%22 Which is perfectly fine It works great. I can see the collations so that In my dropdown search bar for when clients search these medical articles they can see these terms. Now In regards to PHP (solarium api to talk to solr) now. Since this is a website and I intend on making an AJAX call to php I cannot see the collation list. Solarium fails on hyphenated terms as well as fails on building the collations list. For example if I would type in "brain canc" ( i want to search brain cancer) It auto suggests brain , then cancer but in collations nothing is shown. If I would to send this to the URL (localhost url, which will soon change when moved to prod enviornment) i can see the collations. A screenshot is here.. brain can (url) -> https://gyazo.com/30a9d11e4b9b73b0768a12d342223dc3 bran canc(solarium) -> https://gyazo.com/507b02e50d0e39d7daa96655dff83c76 php code ->https://gyazo.com/1d2b8c90013784d7cde5301769cd230c So here is where I am. The ideal goal is to have the PHP api produce the same results just like the URL so when users type into a search bar they can see the collations. Can someone please help? Im looking towards the community as the savior to all my problems. I want to learn about solr at the same time so if future problems popup I can solve them accordingly. Thanks! Happy Holidays Kevin. --001a114b37ce3aeae20543801265--