quickwit-oss / quickwit-datasource

Quickwit data source for Grafana
GNU Affero General Public License v3.0
39 stars 9 forks source link

Remove `AND` on a positive filter in explore view and use simple quotes #98

Closed fmassot closed 4 months ago

fmassot commented 4 months ago

In the explore view, it is possible to filter on a field value by clicking on the magnifying glass.

When filtering, we add the string AND field:"value" to the query.

Instead, with should add the string field:'value' to the query and AND is the default operator and single quote works even on fields where positions are not stored.

ddelemeny commented 4 months ago

Single quoted terms aren't friendly to the lucene parser either... Do we target fixing the whole bunch of parser issues for 0.5 ?

fmassot commented 4 months ago

I see, we can at least remove the AND. The PR which fixes some issues on the QL will be soon merged, hopefully tomorrow.