Hi, I have a "expense_status" field in a collection. I'm using Laravel scout to connect with typesense but not sure how to use "options include_fields" so I can recieve that typesense column with the results (it's not a column thats on my model or in the database but created when inserting an item to typesense)
j
Jason Bosco
01/17/2025, 12:06 AM
CC: @Fanis Tharropoulos
f
Fanis Tharropoulos
01/21/2025, 11:19 AM
Hey there. Do you mean that you have a different schema in Typesense than the one in Eloquent? Scout's builder always maps the object to whatever Model class you've defined. Otherwise, you could use the
raw
function, and use that object to get all the fields and metadata (basically a typesense Response directly) and use that