You mean you want to store the field differently? Index it differently? Or,
perhaps, fetch is differently when executing a search?
On Sat, Mar 17, 2012 at 3:06 PM, Jippe Holwerda mail@jippeholwerda.nlwrote:
Hi all,
I'm using Elasticsearch as a backend for a website, where documents coming
from a Content Management System are stored in Elasticsearch.Now I'm looking into a mapping scheme from documents to friendly URLs and
back. For instance, a document having title 'G3PH industrial high-power
solid state relay' should map to
'g3ph-industrial-high-power-solid-state-relay'. That name can then be used
in a URL. Using that URL, the correct document should be fetched from
Elasticsearch and shown on a page.What would be the best way to implement this?
One solution would be to transform the title field and store it in a
multi_field upon storing a document in the index.
Should I create a custom analyzer for this? Use a scripting field?Cheers,
Jippe Holwerda