michtio
07/25/2022, 12:05 PM{facet_counts: [], found: 26,…}
facet_counts: []
found: 26
hits: [{,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…},…]
out_of: 30
page: 1
request_params: {collection_name: "e4l_dev_toolkit", per_page: 50, q: ""}
search_cutoff: false
search_time_ms: 0
Using typesense-jsKishore Nallan
07/25/2022, 12:09 PMmichtio
07/25/2022, 12:10 PM"*"
I actually get the same resutlsmichtio
07/25/2022, 12:10 PM{facet_counts: [], found: 26,…}
facet_counts: []
found: 26
hits: [{,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…}, {,…},…]
out_of: 30
page: 1
request_params: {collection_name: "e4l_dev_toolkit", per_page: 50, q: "*"}
search_cutoff: false
search_time_ms: 0
michtio
07/25/2022, 12:10 PMmichtio
07/25/2022, 12:12 PM"*"
in the query in my honest opinion @Kishore Nallan
--> when reactively bound in Vue, on typing through v-model when a user doesn’t enter anything in their searchbox, or just delete what they typed, I’d rather have on empty string everything turning up, besides adding additional logic.Kishore Nallan
07/25/2022, 12:20 PMmichtio
07/25/2022, 12:20 PMKishore Nallan
07/25/2022, 12:21 PMmichtio
07/25/2022, 12:22 PMmichtio
07/25/2022, 12:31 PM-100
since it was difficult to work with null
values in there.
But the initial sort should actually always show those -100
ones, but our values usually just go from -4
to +8
I’ll have a think on how to resolve this.Kishore Nallan
07/25/2022, 12:32 PMmichtio
07/25/2022, 12:32 PMnull
values into an int field in 0.23.1
?michtio
07/25/2022, 12:32 PMKishore Nallan
07/25/2022, 12:33 PMKishore Nallan
07/25/2022, 12:34 PMmichtio
07/25/2022, 12:34 PMnull
is an actual valid research value 😬michtio
07/25/2022, 12:34 PMKishore Nallan
07/25/2022, 12:35 PMmichtio
07/25/2022, 12:35 PM[
'name' => 'impact',
'type' => 'int32',
'facet' => true,
'optional' => true
],
michtio
07/25/2022, 12:35 PMnull
then?michtio
07/25/2022, 12:35 PMKishore Nallan
07/25/2022, 12:36 PMmichtio
07/25/2022, 1:18 PMoptional
has different behaviour as what I thought @Kishore Nallan
--> when it’s set to optional and we feed it a null
value it’s not even showing up in the “values” anymore of the document, it’s non-existing.
What I expect is that it is existing, but can simply accept null
as value.
--> impact: null
vs impact: 1
michtio
07/25/2022, 1:19 PM?Int
( if we would type it in PHP e.g. )Jason Bosco
07/25/2022, 1:22 PMmichtio
07/25/2022, 1:25 PMnum_employees:[10..100] && num_employees:=200
for the filter_by possibilities?Jason Bosco
07/25/2022, 1:32 PMmichtio
07/25/2022, 1:33 PMJason Bosco
07/25/2022, 1:37 PMmichtio
07/25/2022, 1:37 PMJason Bosco
07/25/2022, 1:38 PMmichtio
07/25/2022, 1:38 PMmichtio
07/25/2022, 2:12 PMimpact:[-4..8] && impact:=-100
But it is not returning any results. I want everything between -4 and 8 and also everything that is labelled -100michtio
07/25/2022, 2:13 PMJason Bosco
07/25/2022, 2:17 PM[-4..8,-100]
michtio
07/25/2022, 2:17 PMmichtio
07/25/2022, 2:18 PMJason Bosco
07/25/2022, 2:19 PM