Opened 5 years ago

Closed 4 years ago

#3028 closed change (fixed)

Set Elasticsearch mapping (schema) to strings not_analyzed

Reported by: Kirill Assignee:
Priority: Unknown Milestone:
Module: Infrastructure Keywords:
Cc: matze, sporz Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):


Elasticsearch per default analyzes strings before indexing them. It means it breaks the strings in tokens first, then indexing them. This makes aggregations impossible, e.g. count by OS would result in:

Windows 1000
7 500
8 500
Linux 100
Mint 100

instead of

Windows 7 500
windows 8 500
linux mint 100

Furthermore I could imagine that is is more performant to not analyze the string.

I suggest to set all strings to not_analyzed.

Quick Start (hope it helps):

Change History (1)

comment:1 Changed 4 years ago by matze

  • Resolution set to fixed
  • Status changed from new to closed

Obsolete since we do not plan to use ElasticSearch any further for now.

Note: See TracTickets for help on using tickets.