#community-help

Issue with Including More Than 4 Fields in QueryBy

TLDR vikram faces a problem when adding a fifth field to QueryBy - the results become empty. Kishore Nallan asks for a reproducible code example and sample dataset to identify the problem.

Powered by Struct AI
Nov 24, 2022 (13 months ago)
vikram
Photo of md5-f930fdb99fd46477205fa1201164ea50
vikram
09:57 AM
Hi All, is there any limit to include fields in queryby.because i am not able to add more than 4.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
09:58 AM
No there are no limits. What error are you getting?
vikram
Photo of md5-f930fdb99fd46477205fa1201164ea50
vikram
10:34 AM
i am not getting any error just not able to see any output.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:44 AM
You mean the fourth field you add does not show up in the results? Or none of the four fields are returned?
vikram
Photo of md5-f930fdb99fd46477205fa1201164ea50
vikram
10:44 AM
When i try to add 5th fields then results is empty
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:55 AM
Can you please a small reproduceable code example? I can then see what's going wrong.
vikram
Photo of md5-f930fdb99fd46477205fa1201164ea50
vikram
10:57 AM
queryBy:'singer_name, artist_name,song_name,album_name,actor,genre,mood, music_director, playlist_name,music_video_name,movie_name,tv_series_name'
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:05 AM
I would need a sample dataset where the problem occurs as well. You can DM me or email me if you would prefer that.

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3011 threads (79% resolved)

Join Our Community

Similar Threads

Limiting Results by Facets in `queryBy` Clause

gab asks about limiting results by facets in the `queryBy` clause. Kishore Nallan suggests making multiple queries independently using the multi_search endpoint.

6
23mo
Solved

Discussing Data Retrieval in Typesense Cloud Tool

Ricardo inquired about the impact of using non-searched fields in data records with Typesense. Jason explained that all fields are fetched from the disk, even if unindexed, pointing out it might not affect performance, with the benefit of reducing separate database API calls.

1

17
33mo
Solved

Performance Issues with Adding Filters to Large Datasets

Cirdes is experiencing slower response times when adding filters to a large dataset. Jason suggests trying a different version and using a different format for filters. They also inquire about the value of the 'found' field and if removing the sort_by field improves performance. SamHendley chimes in with their own similar issues and Kishore Nallan offers to discuss solutions further in DM. krok expresses interest in the discussion. Further tests and optimizations are planned.

2

16
10mo

Multiple Filters and JSON Requests in Typesense

Manish asked about multiple filter_by arguments, JSON input, and using multisearch. Jason offered typesense documentation links, examples, and how to use JSON formatted requests with multisearch. Ed shared a similar use case.

6

44
5mo
Solved

Discussion on Retrieving Extra Facet Values

Ricardo inquired about retrieving extra facet values beyond the max_facet_values limit. Kishore Nallan suggested a workaround and asked Ricardo to open a GitHub issue for the feature request.

7
28mo
Solved