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 D05A5200B46 for ; Sat, 16 Jul 2016 11:26:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CEF3C160A5F; Sat, 16 Jul 2016 09:26:49 +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 EDD2D160A5D for ; Sat, 16 Jul 2016 11:26:48 +0200 (CEST) Received: (qmail 45224 invoked by uid 500); 16 Jul 2016 09:26:46 -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 45210 invoked by uid 99); 16 Jul 2016 09:26:46 -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; Sat, 16 Jul 2016 09:26:46 +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 02A861812B0 for ; Sat, 16 Jul 2016 09:26:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.18 X-Spam-Level: * X-Spam-Status: No, score=1.18 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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 gHHkRcllwC5f for ; Sat, 16 Jul 2016 09:26:42 +0000 (UTC) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id BE0685FB8F for ; Sat, 16 Jul 2016 09:26:41 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id w18so195028764oiw.3 for ; Sat, 16 Jul 2016 02:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7x/eWdKy4Fa7BV7YEzCTSGN0mYONHDYJYAlru6CYXrM=; b=spS3AUthgduBfASWZnIu+WQqeo21I+YO0rBze/EYMs06MbZQcSsE33YQiSwcGu7f0c E1icmdP5/h5PtJ/1AoPH7mOKB3aGh/T4mIzkFCVBl6j0amlTd5TY6tkD7ivm44cieFSH gbyOmhfxnLixbPT+M2H82AjeAFD79eXq9UDKzLWV5OOhjd9xTtTZ3/lMXgLSGvird/tT UjqlwDhUI7vncj9clonsmjwLeHdGBtvyx6JMOscycbdU3zCO6NJBt6299m8FiFumo0ZZ Piqs/aRQnHMdmJfB9LBr4/le18s2bofdIMe2BdIxHKSK0sqyzszqhztiZeFQnyNytA14 YpEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7x/eWdKy4Fa7BV7YEzCTSGN0mYONHDYJYAlru6CYXrM=; b=fY8Xrg2H+7Y6vLB24Fw/oAqUeBbfgMiicr51HONOmQW2qz/iLK8d8DCBurANxUrQif wSxJ33Jr7MRaFt1hGopTXRiqDTastnUAPYbYIICs9y/w09QsQdjvPxdBBLjc9jkFZHGn Jalf3g6Jq915kiYtCIv07tRnTvUHMYTbznZ9oRyHrwhbJ+k4ZAGFBv/rmSqBnYNQW05T Wbxgfyn+kG0Gm9cvgf1lM93y1yyZ72Fh1JGf3UdrlVT51OgZDhJYsLmeTBkIqotnoif4 TYtYJ+YBYn3iTOuQ7EaaQdGatutCdhzrNgdJSxBzCYlvXx730cv9Z3Vrwxa2TRt1rgtY Z/MA== X-Gm-Message-State: ALyK8tI5U039Bmo/mXIV4Tt5dV3lN77KkwV5NY+Mrt8XaV12ob1nZAqiR3F/DRJTqvBZBNGVmV842WKJqH03RA== X-Received: by 10.157.43.211 with SMTP id u77mr15642198ota.177.1468661195248; Sat, 16 Jul 2016 02:26:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.102.207 with HTTP; Sat, 16 Jul 2016 02:26:34 -0700 (PDT) In-Reply-To: References: <57893465.1080602@gmail.com> From: Waldyr Neto Date: Sat, 16 Jul 2016 06:26:34 -0300 Message-ID: Subject: Re: analyzer for _text_ field To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113ad78ed69c5e0537bd5449 archived-at: Sat, 16 Jul 2016 09:26:50 -0000 --001a113ad78ed69c5e0537bd5449 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tks, it works :) but do you know how i could do this, thange the _text_ analyzer using schemas? maybe in any point i could change the default analyzer. what i really need is to use any analyzer that work with phonetic search in the content of my files; On Fri, Jul 15, 2016 at 10:11 PM, Waldyr Neto wrote: > tks a lot, i'll try soon and give u a feed back :) > > On Fri, Jul 15, 2016 at 4:07 PM, David Santamauro < > david.santamauro@gmail.com> wrote: > >> >> The opening and closing single quotes don't match >> >> -data-binary '{ ... }=E2=80=99 >> >> it should be: >> >> -data-binary '{ ... }' >> >> >> >> On 07/15/2016 02:59 PM, Steve Rowe wrote: >> >>> Waldyr, maybe it got mangled by my email client or yours? >>> >>> Here=E2=80=99s the same command: >>> >>> >>> >>> -- >>> Steve >>> www.lucidworks.com >>> >>> On Jul 15, 2016, at 2:16 PM, Waldyr Neto wrote: >>>> >>>> Hy Steves, tks for the help >>>> unfortunately i'm making some mistake >>>> >>>> when i try to run >>>> >>>>> >>>>>> curl -X POST -H 'Content-type: application/json=E2=80=99 \ >>>> http://localhost:8983/solr/gettingstarted/schema --data-binary >>>> '{"add-field-type": { "name": "my_new_field_type", "class": >>>> "solr.TextField","analyzer": {"charFilters": [{"class": >>>> "solr.HTMLStripCharFilterFactory"}], "tokenizer": {"class": >>>> "solr.StandardTokenizerFactory"},"filters":[{"class": >>>> "solr.WordDelimiterFilterFactory"}, {"class": >>>> "solr.LowerCaseFilterFactory"}]}},"replace-field": { "name": >>>> "_text_","type": "my_new_field_type", "multiValued": "true","indexed": >>>> "true","stored": "false"}}=E2=80=99 >>>> >>>> i receave the folow error msg from curl program >>>> : >>>> >>>> curl: (3) [globbing] unmatched brace in column 1 >>>> >>>> curl: (6) Could not resolve host: name >>>> >>>> curl: (6) Could not resolve host: my_new_field_type, >>>> >>>> curl: (6) Could not resolve host: class >>>> >>>> curl: (6) Could not resolve host: solr.TextField,analyzer >>>> >>>> curl: (3) [globbing] unmatched brace in column 1 >>>> >>>> curl: (3) [globbing] bad range specification in column 2 >>>> >>>> curl: (3) [globbing] unmatched close brace/bracket in column 32 >>>> >>>> curl: (6) Could not resolve host: tokenizer >>>> >>>> curl: (3) [globbing] unmatched brace in column 1 >>>> >>>> curl: (3) [globbing] unmatched close brace/bracket in column 30 >>>> >>>> curl: (3) [globbing] unmatched close brace/bracket in column 32 >>>> >>>> curl: (3) [globbing] unmatched brace in column 1 >>>> >>>> curl: (3) [globbing] unmatched close brace/bracket in column 28 >>>> >>>> curl: (3) [globbing] unmatched brace in column 1 >>>> >>>> curl: (6) Could not resolve host: name >>>> >>>> curl: (6) Could not resolve host: _text_,type >>>> >>>> curl: (6) Could not resolve host: my_new_field_type, >>>> >>>> curl: (6) Could not resolve host: multiValued >>>> >>>> curl: (6) Could not resolve host: true,indexed >>>> >>>> curl: (6) Could not resolve host: true,stored >>>> >>>> curl: (3) [globbing] unmatched close brace/bracket in column 6 >>>> >>>> cvs1:~ vvisionphp1$ >>>> >>>> On Fri, Jul 15, 2016 at 2:45 PM, Steve Rowe wrote: >>>> >>>> Hi Waldyr, >>>>> >>>>> An example of changing the _text_ analyzer by first creating a new >>>>> field >>>>> type, and then changing the _text_ field to use the new field type >>>>> (after >>>>> starting Solr 6.1 with =E2=80=9Cbin/solr start -e schemaless=E2=80=9D= ): >>>>> >>>>> ----- >>>>> PROMPT$ curl -X POST -H 'Content-type: application/json=E2=80=99 \ >>>>> http://localhost:8983/solr/gettingstarted/schema --data-binary '{ >>>>> "add-field-type": { >>>>> "name": "my_new_field_type", >>>>> "class": "solr.TextField", >>>>> "analyzer": { >>>>> "charFilters": [{ >>>>> "class": "solr.HTMLStripCharFilterFactory" >>>>> }], >>>>> "tokenizer": { >>>>> "class": "solr.StandardTokenizerFactory" >>>>> }, >>>>> "filters":[{ >>>>> "class": "solr.WordDelimiterFilterFactory" >>>>> }, { >>>>> "class": "solr.LowerCaseFilterFactory" >>>>> }]}}, >>>>> "replace-field": { >>>>> "name": "_text_", >>>>> "type": "my_new_field_type", >>>>> "multiValued": "true", >>>>> "indexed": "true", >>>>> "stored": "false" >>>>> }}=E2=80=99 >>>>> ----- >>>>> >>>>> PROMPT$ curl >>>>> http://localhost:8983/solr/gettingstarted/schema/fields/_text_ >>>>> >>>>> ----- >>>>> { >>>>> "responseHeader=E2=80=9D:{ [=E2=80=A6] }, >>>>> "field":{ >>>>> "name":"_text_", >>>>> "type":"my_new_field_type", >>>>> "multiValued":true, >>>>> "indexed":true, >>>>> "stored":false}} >>>>> ----- >>>>> >>>>> -- >>>>> Steve >>>>> www.lucidworks.com >>>>> >>>>> On Jul 15, 2016, at 12:54 PM, Waldyr Neto wrote: >>>>>> >>>>>> Hy, How can i configure the analyzer for the _text_ field? >>>>>> >>>>> >>>>> >>>>> >>> > --001a113ad78ed69c5e0537bd5449--