On 7/22/07, Klas Ehnrot <[EMAIL PROTECTED]> wrote:
"A relational database is very good at for example answering the
question "how many of my customers over age
25 and a last name that starts with an F have purchased items the last
two months?". That query doesn't go
along the relationships in the node space and is thus difficult to
traverse. In order to alleviate this, Neo has
integrated a search engine for arbitrary property lookups."

How do I use the search engine? Can someone point me in the right direction?

That document is showing its age now... it was written during fall
2006 and the then-current version of Neo had an integrated lucene
engine for property lookups. We elected to leave that out in later
releases to minimize dependencies, distribution size and because a
search engine like lucene isn't optimal for all usage patterns.

When it comes to range queries, wildcard matching and full text
searches across data sets with reasonably large (several kilobytes)
individual textual records, then lucene is the way to go. But if you
want to resolve one property value (using *equality match*, not
substring, range, wildcards, etc) to exactly one node, we've had
better overall performance numbers with a specialized b-tree.

(We've actually experimented lately with building a balanced tree
utility on top of Neo. This would allow us to solve the "exact
property lookup" problem in a general way without resorting to an
auxiliary structure. Johan may be able to elaborate more on that.)

But it seems like you want "search engine-like" features such as
stemming and wildcard and so on? Then integrating lucene would be the
way to go. In essence, you'd put the property values you want to be
able to full text search on in a lucene index along with the node id,
then use lucene to look up the node ids and embeddedNeo.getNodeById()
to get the nodes. Would that work?

Cheers,

--
Emil Eifrém, CEO [EMAIL PROTECTED]
Neo Persistence AB, www.neopersistence.com
Cell: +46 733 462 271 | US Cell: 206 403 8808
_______________________________________________
Neo mailing list
[email protected]
http://lists.neo4j.org/mailman/listinfo/user

Reply via email to