Difficulty in Searching Schema Returns No Results
TLDR Robert cannot search anything in a schema they have defined and populated with data. Kishore Nallan asks for a reproducible example.
Aug 24, 2021 (27 months ago)
Robert
12:01 PM{
name: 'collections',
fields: [
{
name: 'collection_name',
type: 'string[]',
facet: true,
},
{
name: 'id',
type: 'string',
facet: false,
},
],
}
I’ve populated it with data.
And when i try to search anything like:
{
q: 'a',
query_by: 'collection_name',
num_typos: 0,
}
or any other letter, i get no results. Do you have any idea why?
Kishore Nallan
12:11 PMRobert
12:20 PMKishore Nallan
12:45 PMKishore Nallan
03:04 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Resolving TS Issue on Id Field and Search Results
Mubashirullah had issues getting the 'id' field from their schema, which Kishore Nallan explained was due to it being a special identifier in TS 0.22. They recommended creating a 'searchable_id' field.
Specific Collection Backfill and Schema Config in Firebase Extension
Loic asked Jason about backfilling specific collections with the Firebase Extension and configuring collection schemas. The latter explained current limitations and gave advices about handling attributes for search/filtering, storage, and return.
Issue with Query Hangs Identifying Different Collection Field Names
Kanak experiences query hangs when collection field names differ. Ahmed had an issue adding documents to collections, which was self-resolved. Kishore Nallan resolved Kanak's issue with the updated build.