Re: [Tracker] Using patterns on search?



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.

--
Regards,
Martyn

Founder & Director @ Lanedo GmbH.
http://www.linkedin.com/in/martynrussell


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]