Query to ignore certain phrases

2008-08-11 Thread Jeff French
We're trying to perform a query where if our intended search term/phrase is part of a specific larger phrase, we want to ignore that particular match, but not the entire document (unless of course there are no other hits with our intended term/phrase). For example, a query like: "white house"

Question about Qsol parser and phrase searches

2007-09-09 Thread Jeff French
I have a document that contains the phrase "recent stent placement". Here is the result of some queries using the Qsol parser: "recent stent placement" => YES "recent placement" => YES "recent placement":0 => NO "recent placement":1 => YES where YES/NO indicates whether the document w

Nested concept fields

2007-08-12 Thread Jeff French
I'm trying to index concepts within a document, and search them within the context of a multivalued field. I'm not even sure it's possible with the QueryParser or QsolParser syntax. Does anyone know if it is / is not possible? If not, is it conceptually possible using the Query API? What I'd like

Re: Nested Fields

2007-08-09 Thread Jeff French
Spencer, it seems inefficient to me too, but that's pretty much what I did for tables embedded within a document. I used a SAX parser to parse the document and kept track of the table elements I saw. When I received an endElement, I added the text I had buffered up in the characters() method to

Re: Search terms on a single "instance" of field

2007-07-29 Thread Jeff French
Rossini, have you had any luck with this? I don't know if this solves your exact problem, but could you do something like this: 1. Use Analyzer.getPositionIncrementGap to create a gap (let's say 100) between your fieldA's. 2. Then query like this: fieldA:("termA termB"~99) I did this pl