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"
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
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
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
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