You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to use bleve to search from slice of struct but I have performance issue.
I want to search exact match with one of the field, sometimes I need negative search and sometimes positive. I don't need to use full text search for this case. Here is what I found so far:
Search using negative search will have much slower performance even when the result count is around the same? I would expect it to be the same because it returns same number of hits
Search on struct with fewer field will have faster performance, compared when the struct has more field. I would expect it to be the same because I only search on one field. On SQL, it will be select field from table, it should not have noticeable performance difference when the table has more field or not
How to disable full text search?
Anyone know what I'm doing wrong here? And how to achieve what I want? Thank you
Here is the result:
negative search on simplified struct: 7.718755ms
negative search on normal struct: 10.91501ms
positive search on simplified struct: 2.358683ms
positive search on normal struct: 2.237731ms
Hi, I want to use bleve to search from slice of struct but I have performance issue.
I want to search exact match with one of the field, sometimes I need negative search and sometimes positive. I don't need to use full text search for this case. Here is what I found so far:
select field from table
, it should not have noticeable performance difference when the table has more field or notAnyone know what I'm doing wrong here? And how to achieve what I want? Thank you
Here is the result:
Here is my code:
The text was updated successfully, but these errors were encountered: