aspose file tools*
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 Spring in Action this week in the Spring 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: 39396
    
  28
Welcome to the Ranch
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39396
    
  28
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using NOT operator in apache lucene query and neo4j