|
|
|
|
|
by OtomotO
751 days ago
|
|
Yes, and there is https://tantivy-search.github.io/examples/basic_search.html But instead of this, I would prefer some way to just hand it JSON and for it to just index all the fields... for comparison, this is my meilisearch SDK code: fun createCustomers() {
val client = Client(Config("http://localhost:7700", "password"))
val index = client.index("customers")
val customers = transaction {
val customers = Customer.all()
val json = customers.map { CustomerJson.from(it) }
Json.encodeToString(ListSerializer(CustomerJson.serializer()), json)
}
index.addDocuments(customers, "id")
}
|
|