Hello Martyn,
Thank you for your response... I mean something simpler...
(consider me an end-user, I'm not developing with Tracker engine).
I use Tracker on my
Red-Hat-Desktop, the search-bar I mean is the one on the
basic-front end (see image attached). I'd like to find files
that should be full-text-indexed, using a few keywords that are
in the files. I don't know if a different team developed this
front-end.
Regards,
Matias Lopez.
On 03/27/2014 11:56 AM, Martyn Russell
wrote:
On
27/03/14 13:39, Matias Lopez wrote:
Hello,
Hello Matias,
Is there a way to setup some kind of
pattern on the search bar? For
Which search bar?
Are you using tracker-needle and a recent version of Tracker?
example something like this "unix AND aix"
or "unix+aix" or "unix &
aix", what I expect is to search both keywords on the search,
but seems
Yes you can do this. There is documentation on how this works
here:
https://wiki.gnome.org/Projects/Tracker/Documentation/Examples/SPARQL/FTS
You may notice, this page uses tracker-sparql and raw queries, but
tracker-needle uses fts:match "$STRING", so if you follow the
rules for your $STRING, it should work as expected on the page
above.
I should add, *tags* will not work this way, support for this
needs to be added.
that the search bar only take complete
literals (like if "unix AND aix"
only matches searches where the full-string INGNORE_CASE("unix
and aix")
exists. Maybe there's a pattern model that could be used, but I
did not
figure it out yet.
Perhaps I should put these rules into the starting page of
tracker-needle so people have a clue about what they can do.
|