This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Neo4j and the fly likes using NOT operator in apache lucene query and neo4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » Neo4j
Bookmark "using NOT operator in apache lucene query and neo4j" Watch "using NOT operator in apache lucene query and neo4j" New topic
Author

using NOT operator in apache lucene query and neo4j

yi sun
Greenhorn

Joined: Aug 08, 2010
Posts: 6
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

Joined: May 31, 2011
Posts: 1
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

Joined: Oct 13, 2005
Posts: 41084
    
  29
Welcome to the Ranch
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 41084
    
  29
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.
 
Don't get me started about those stupid light bulbs.
 
subject: using NOT operator in apache lucene query and neo4j