Elasticsearch-Php Mapping Issue

(Hilal) #1


I have mysql data.

I index it. But it was not true.
For example,
I have"sektor" field in mysql database. It was indexed with php code:

$sektor=trim($sektor, ',');
$sektor_array=explode(',', $sektor);


My index name: ihaleler
My type name: ihale
I tested on sense editor:

GET /ihaleler/ihale/_mapping?pretty


   "sektor": {
            "type": "string"

What is the problem?

(David Pilato) #2

May be you have already an existing mapping?
Or may be the way you put the mapping is wrong?

(system) #3