Commit 82a43e7f authored by Victor Emanouilov's avatar Victor Emanouilov
Browse files

[FIX] manticore: index geopoint types as json

parent bed990ad
Pipeline #648811685 failed with stages
in 54 minutes and 26 seconds
......@@ -206,10 +206,6 @@ class Search_Manticore_Index implements Search_Index_Interface, Search_Index_Que
return [
"type" => "json",
];
} elseif ($entry instanceof Search_Type_GeoPoint) {
return [
"type" => "string",
];
} elseif ($entry instanceof Search_Type_DateTime) {
return [
"type" => "timestamp",
......
......@@ -55,7 +55,7 @@ class Search_Manticore_TypeFactory implements Search_Type_Factory_Interface
public function geopoint($value)
{
return new Search_Type_GeoPoint($value);
return new Search_Type_JsonEncoded($value);
}
public function sortable($value)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment