lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Waldyr Neto <wafen...@gmail.com>
Subject Re: analyzer for _text_ field
Date Fri, 15 Jul 2016 18:16:14 GMT
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’ \
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"}}’

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 <sarowe@gmail.com> 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 “bin/solr start -e schemaless”):
>
> -----
> PROMPT$ curl -X POST -H 'Content-type: application/json’ \
>     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"
>   }}’
> -----
>
> PROMPT$ curl
> http://localhost:8983/solr/gettingstarted/schema/fields/_text_
>
> -----
> {
>   "responseHeader”:{ […] },
>   "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 <wafeneto@gmail.com> wrote:
> >
> > Hy, How can i configure the analyzer for the _text_ field?
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message