You can use this query:

select expand(in('LTSval')) from ATS_NAMAbbr where dval LUCENE "ABS*"



after you have created a *Fulltext index with Lucene and this metadata { 
"allowLeadingWildcard": true} *in the class ATS_NAMAbbr on field "dval"


Il giorno lunedì 18 luglio 2016 16:24:31 UTC+2, Athanassios Hatzis ha 
scritto:
>
> OrientDB v2.2
>
> Hi, I have a vertex class Abbreviation with a lightweight edge LTSval that 
> links another vertex class with a string property dval
>
> select expand(out_LTSval) from Abbreviation
>
>
>
> <https://lh3.googleusercontent.com/-LUepZgsEam0/V4zkdaBVCTI/AAAAAAAAAgk/Gcp6EI_8IN07JwJNM8asTbasinlXtzoeQCLcB/s1600/img1.jpg>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> with this query
>
> select from Abbreviation where out_LTSval.dval in 
> ["ABS","ABS-bro","ABS-containee","ABS-container"]
>
>
> <https://lh3.googleusercontent.com/-YOjIFQ1QZ9o/V4zlnktI92I/AAAAAAAAAgs/m5VLpF5F9-08XEh7PSJUoepqH5iZp3SXACLcB/s1600/img2.jpg>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> I can filter Abbreviation vertices according to the dval property. 
>
> Now I want to do the same using a wildcard operator instead e.g. something 
> similar to the like operator with an "ABS%" expression. How is it possible 
> to apply such filtering to a collection ?
>
>
>
>

-- 

--- 
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.

Reply via email to