+1. I would leave containsText as just one and containsTextAll for all the words. Something like contains and containsAll.
@Enrico, since you already contributed a lot on this, WDYT? Lvc@ On 16 April 2014 13:50, Riccardo Tasso <[email protected]> wrote: > Thanks Enrico, > it would be nice if the containsText operator could be used in > conjunction with an array of strings, something like: > WHERE label containsTextAll ["graph", "databases"] > WHERE label containsTextOneOf ["graph", "databases"] > > Riccardo > > > 2014-04-16 13:42 GMT+02:00 Enrico Risa <[email protected]>: > > Hi Riccardo, >> >> you could try this query >> >> select from Class where property containsText "graph" OR name >> containsText "database" >> >> With 1.7 snapshot you could also index the prefix of a word >> https://github.com/orientechnologies/orientdb/wiki/FullTextIndex >> >> I think there isn't an operator that does the split and search each word >> >> >> >> >> >> 2014-04-16 12:24 GMT+02:00 Riccardo Tasso <[email protected]>: >> >> Hi all, >>> let's say I have the following query: "graph databases" and I want to >>> search for all the vertices with a label which contains at least one of the >>> terms "graph" OR "database". This means that all the following labels are >>> good: "I love graph databases", "I love databases", "I have a graph". >>> >>> Is it possible to use a OrientDB full-text index to perform this query? >>> How? >>> >>> Cheers, >>> Riccardo >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "OrientDB" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
