OrientDB : programmatically query a full text index -
i have created automatic full-text index on vertex property.
orientvertextype entrytype = graph().createvertextype("person"); entrytype.createproperty("name", otype.string); entrytype.createindex("person.name", "fulltext", new string[] { "name" });
now programmatically query total text index. illustration search persons name starting "seb"
.
oindex<?> nameindex = graph().createvertextype("person").getclassindex("person.name"); // nameindex.query("%seb%");
how can ?
you can use:
nameindex.get("seb");
orientdb
No comments:
Post a Comment