How can I index multi string, date, ... in manticoresearch #1047
Replies: 2 comments 6 replies
-
You have to use "json" attribute type for such data types.
Here's a brief overview of what we have in Manticore:
|
Beta Was this translation helpful? Give feedback.
-
Just to expand on what already said, attributes are definitely the way for 'filtering' and 'sorting' - JSON allows for even multi-value strings. But there isn't a concept of a multi searchable text field. Full text fields are single value. |
Beta Was this translation helpful? Give feedback.
-
I'm currently working on a search engine abstraction for PHP and try to add support for manticoresearch. I already flatten my complex JSON object into a flat JSON object which I already did for the Apache Solr Adapter. So my object look like this:
I could not yet found out what the correct way is to index list of strings / text or list of dates, list of floats, ... I only found out there is multi and multi64 type which is only for "integers". What is the correct way to index such kind of data.
Also every field can be
filterable
. The abstract Schema I'm using which I need to map to Manticore looks like this:All field types can be
multiple
.text
type can benotsearchable
, all other types likebool
,int
,float
,date
can befilterable
orsortable
.Can somebody give a hint how to achieve first multi fields of other types then integer and how to make the different types filterable and sortable.
Beta Was this translation helpful? Give feedback.
All reactions