This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Neo4j
Reply 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: 32674
    
    4
Welcome to the Ranch
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32674
    
    4
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: using NOT operator in apache lucene query and neo4j
 
Similar Threads
Lucene +PhraseQuery
Lucene and google-type search functionality
Lucene in Action
Lucene Query.toString returns blank/empty value
How to populate data in neo4j