• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using NOT operator in apache lucene query and neo4j

 
yi sun
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just started to use neo4j and apache lucene,I have a requirement to allow users to use "NOT" operator on a single term. Since the NOT operator cannot be used with just one term, how can i achieve this?

I indexed my files using neo4j Indexing Framework,

when constructing the query, I combined the NOT statement with MatchAllDocsQuery using the below code


Then, I query the db using below code and a NullException occurs


any help is appreciated.Thanks
 
Peter Neubauer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I am not sure about this one, but maybe you could post this question on the new Neo4j tender area? http://neo4j.tenderapp.com/discussions

/peter
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not ab "beginning" question, so I have moved it. Not sure I have moved it to the right place, however. I would suggest you follow Peter Neubauer's suggestion, but make sure to inform us if you do.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic