Replies: 1 comment 2 replies
-
There is an open issue for this: #24 keep yourself uptodate by subscribe it.
The schema is required as that defines how data is mapped from Index JSON <-> PHP Document. The Schema is very important as with SEAL we want make sure that you get always correct typed data back and so you only get the fields which you did define in your Schema, because Dynamic Schemas can make in complex projects a lot of issues if you allow Dynamic props. I know for prototyping its not ideal but for future of projects its better to think about your Document Structure types. Also have a look at: https://schranz-search.github.io/schranz-search/schema/index.html#best-practices
It can work aslong as the external system create the Fields of the Index the same way as the SEAL would create it based on the Schema. Fields which are not defined in the SEAL mapping are ignored but not given back to you. As mention above it was a Design decision to be very strict about Schema and types in SEAL to avoid Dynamic misusages and index fragmentations because of such things. Thx for using Github Discussion and give SEAL a try let me know if you have any more questions. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm coming over from using the meilisearch-php library, and have some basic questions.
The meilisearch API support bulk adds, passing an array of json objects. I don't see how do that with the $engine here. Are there adapter-specific calls?
Also, by default the meilisearch stores all the fields you pass it in the addDocument() call, but you need to configure the searchable / filterable settings. Is there a way in this library to store everything even if it's not defined in the schema?
Is the schema required to do searching, or is it just required when creating the index and indexing? That is, if another tool creates the index can I simple call
without ever defining the schema? Can I define the schema at run-time, rather than compile-time?
Very cool package, thanks for releasing it!
Beta Was this translation helpful? Give feedback.
All reactions