Don't rely on specific lucene functionality esp. the fancy one. Most of this is only accessible in the java API. http://docs.neo4j.org/chunked/milestone/indexing-create-advanced.html http://docs.neo4j.org/chunked/milestone/indexing-lucene-extras.html
Fulltext analyzers are lowercase by default. Why do you have an array of properties? Am 22.08.2014 um 18:06 schrieb gg4u <[email protected]>: > Hi, > > I am testing the fulltext search. > It is not clear for me: > - syntax > - which lucene functionality are implemented > - if it is possible to apply index to an array of properties for each node > (fulltext Vs exact?) > > e.g. > 1. > I want to search for all names containing the letters 'tiram' > I could have cases like: > a. 'Tiramisu' > b. 'aaaatiramisu' > c. 'aaaatiramisubbbb' > d. 'aaaa tiramisu' > > > with a clause: > where node.name =~ '.*tiram*.' > I won't get the first option a. > This won't use an index but just apply a regexp on a full property scan. You have to add an ignore case flag upfront > where node.name =~ '(?i).*tiram*.' > How to get all names containing a substring or starting or fininshing with a > substring? > > > 2. Following tutorial > http://www.lucenetutorial.com/lucene-query-syntax.html > It looks like boost and other properties are not supported: > where node.name =~ '.*tiram*.' ~5 As said before this is just regexps, FTS with the legacy lucene index is completely separate, see: http://jexp.de/blog/2014/03/full-text-indexing-fts-in-neo4j-2-0/ http://nigelsmall.com/neo4j/index-confusion > where is possible to study a complete examples list with syntax for cypher > queries with lucence? > > 3. since lucene tokenize text, > does it make sense to apply indexes to a an array of properties (a list of > strings) > VS indexing a whole text field property ? > > e.g. what is difference between indexing: > [word1, word2, word3] Vs "My text is composed by word1, word2, word3" ? I think the second option would be better for FTS. > > thank you! > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" 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 "Neo4j" 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.
