I have the same problem with lowercase_terms. Is there a fix? The term
suggester lowercases them by default (not desirable), and the completion
suggester doesn't.
On Tuesday, July 8, 2014 4:14:22 PM UTC-5, Ryan Tanner wrote:
>
> Side question:
>
> If I try to set lowercase_terms to true, I get a 400 back saying
> "suggester[term] doesn't support [lowercase_terms]" which seems to
> contradict the documentation.
>
> "suggest" : {
> "text" : "my query string",
> "person_name" : {
> "term" : {
> "field" : "name.suggestion",
> "size" : 1,
> "sort" : "score",
> "lowercase_terms" : true
> }
> }
> }
>
> Fails against both 1.1.1 and 1.2.1.
>
> On Tuesday, July 8, 2014 12:53:57 PM UTC-6, Ryan Tanner wrote:
>>
>> 1.1.1 in production but I tested this with 1.2.1 locally and had the same
>> problem.
>>
>> On Tuesday, July 8, 2014 12:53:14 PM UTC-6, kimchy wrote:
>>>
>>> Which version of ES are using? I believe we fixed a bug around this
>>> several versions ago.
>>>
>>> On Jul 8, 2014, at 20:31, Ryan Tanner <[email protected]> wrote:
>>>
>>> *bump*
>>>
>>> Anyone?
>>>
>>> On Monday, July 7, 2014 5:15:06 PM UTC-6, Ryan Tanner wrote:
>>>>
>>>> I'm having trouble upgrading an existing field to a multi-field. I've
>>>> done this before with no issues on other fields.
>>>>
>>>> I think the issue here is that the original mapping specifically
>>>> defines an analyzer:
>>>>
>>>> "mappings" : {
>>>> "person" : {
>>>> "properties" : {
>>>> "domain_titles" : {
>>>> "type" : "string",
>>>> "analyzer" : "stop",
>>>> "include_in_all" : true
>>>> }
>>>> }
>>>> }
>>>> }
>>>>
>>>> The other fields that have been upgraded do not have an analyzer in the
>>>> original mapping.
>>>>
>>>> This is the upgrade I'm attempting:
>>>>
>>>> {
>>>> "settings" : {
>>>> "index.analysis.filter.shingle_filter.type" : "shingle",
>>>> "index.analysis.filter.shingle_filter.min_shingle_size" : 2,
>>>> "index.analysis.filter.shingle_filter.max_shingle_size" : 5,
>>>> "index.analysis.analyzer.shingle_analyzer.type" : "custom",
>>>> "index.analysis.analyzer.shingle_analyzer.tokenizer" : "standard",
>>>> "index.analysis.analyzer.shingle_analyzer.filter" : [ "lowercase",
>>>> "shingle_filter" ]
>>>> },
>>>> "mappings" : {
>>>> "person" : {
>>>> "properties" : {
>>>> "domain_titles" : {
>>>> "type" : "string",
>>>> "fields" : {
>>>> "suggestions" : {
>>>> "type" : "string",
>>>> "index" : "analyzed",
>>>> "include_in_all" : false,
>>>> "analyzer" : "nicknameAnalyzer"
>>>> }
>>>> }
>>>> }
>>>> }
>>>> }
>>>> }
>>>> }
>>>>
>>>> Is there any reason why this sort of upgrade should fail? This is the
>>>> error message I get:
>>>>
>>>>
>>>> {"error":"MergeMappingException[Merge failed with failures {[mapper
>>>> [domain_titles] has different index_analyzer]}]","status":400}
>>>>
>>>>
>>>> Thanks for the help.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "elasticsearch" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/elasticsearch/3ffb1a0c-c1eb-4c2c-90f3-7d579aab7a41%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/elasticsearch/3ffb1a0c-c1eb-4c2c-90f3-7d579aab7a41%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/c1757b54-fb8c-4438-a4b4-70d500de1690%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.