Search with fts enabled isn't consistent with no-fts search

Hello, could you please fix inconsistency in behaviour of fts search

There is a minimal project in attachment.

Test case:

  1. Open FooEdit screen for some Foo entity

image

  1. Click Afoo field
    image

  2. Click Search

ER:
only Foo entities with type = type A are shown
image
AR:
all Foo entities are shown
image

ds-bug.zip (496.7 KB)

Hi,

We’ve created an issue: https://github.com/cuba-platform/cuba/issues/2609

For the case shownin the sample project you may try to use query parameters with the :param prefix:

            <query>
                <![CDATA[select e from dsbug$Foo e]]>
                <filter>
                    <c>e.type = :param$type</c>
                </filter>
            </query>

In this case you won’t have to manually collect parameters and pass them to the datasource.refresh(...) method.