Also, found interesting thing, on method getVertices(final String iKey, 
Object iValue) on OrientBaseGraph
By default used "." as delimiter on loop 

for (OIndex<?> index : indexes) {

        final String oInName = index.getName();

        final int point = oInName.indexOf(".");

        final String okey = oInName.substring(point + 1);

        if (okey.equals(key)) {

          indexName = oInName;

          break;

        }

      }


but no any information, that point must be used for index name. So as 
example for indices name like v_user_EMAIL.sbt where v_user is a class 
name, index EMAIL will be never found and query will be executed. 


But in any case, rename index to v_user.EMAIL.sbt (programmatically 
recreate class property and index with such name) doesn't help. No records 
are returned. 


As conclusion, I suppose must be some variable to set the delimiter, other 
case API of index creation doesn't work.


Regards,

Valentin




вторник, 6 мая 2014 г., 15:37:27 UTC+4 пользователь Valentin Popov написал:
>
> I'm trying to search for record in indexes. (ODB 1.7)
>
>
> {"@type":"d","@rid":"#11:5","@version":39,"@class":"v_user","USER_NAME":"admmaster","EMAIL":["[
> [email protected], [email protected], 
> [email protected], [email protected], 
> [email protected], [email protected], 
> [email protected], [email protected], 
> [email protected]]"],"in_user":"#25:0","proxyaddresses":"smtp:[email protected]","memberof":"CN=Exchange
>  
> Organization Administrators,OU=Microsoft Exchange Security 
> Groups,DC=moeller,DC=loc","out_folder":"#26:0"}
>
> search is by any email on property EMAIL OType.EMBEDDEDLIST, OType.STRING. 
>
> OrientGraph.getVertices("v_user.EMAIL", "[email protected]") it 
> return 0 Iterator. 
>
>
> So, here is a question, is it possible to retrieve the records from index? 
> And if it is possible, how to do it? 
>
> Regards
> Valentin
>

-- 

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