You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above and all the examples I can find on the website, the key and the field name are the same. I assume there's map that ways "when you see this key in the document being indexed, store it as a key of this type".
But I'm not sure which is which.
$index = new Index('imdb', [
'movie_name' => new Field\TextField('title', sortable: true),
'Genres' => new Field\TextField('genre', multiple: true, filterable: true),
'Directory Notes' => new Field\TextField('internalNote', searchable: false),
]);
As some of my data comes from CSV files with first columns that are more labels, I'm curious about how the mapping it done.
The text was updated successfully, but these errors were encountered:
@tacman currently the key need to match the name. There is currently no support for aliases / different mapped field names. I'm not yet sure if I planned to implement such thing or not. As at current case it just unnecessary rethinking which I think make things harder as needed
So just keep the name same as you want to access it in your documents, you should not care about how it is stored:
In the above and all the examples I can find on the website, the key and the field name are the same. I assume there's map that ways "when you see this key in the document being indexed, store it as a key of this type".
But I'm not sure which is which.
As some of my data comes from CSV files with first columns that are more labels, I'm curious about how the mapping it done.
The text was updated successfully, but these errors were encountered: