Hi all,
I am using Lucene.Net 3.0.3 and need to search in a specific field
(ignoring any fields specified in the query). I am given a parsed Lucene
Query so I am unable to generate a parsed query with my required field.
Is there any functionality in Lucene that allows me to loop through the
terms
I don't know the internal search algorithm something like Word
uses, but it may be really simple.
So, I type in the following in a Word document
trains training trainer train
and search for "trainer". Word does not stop on
"trains", it hasn't applied stemming apparently.
in the 12345 case, it
Hi,
You can only do this manually with instanceof checks and walking through
BooleanClauses.
The better way to fix your problem would be to change your query parser, e.g.
by overriding getFieldQuery and other protected methods to enforce a specific
field while parsing the query string.
Uwe
Hi Uwe
Unfortunately, at the stage I am required to do this, I do not have the
query text. I only have the parsed query.
I thought of iterating through the query clauses etc but could not find how
to. What function allows me to do this ?
Regards
Puneet Pawaia
On 6 Jul 2013 20:06, "Uwe Schindler"
Each Query object has getter methods for each of its fields. If a field is a
nested Query object, you will then have to recursively process it. Be
prepared to do lots of "instanceof" conditionals. None of this is hard, just
lots of dog work. Consult the Javadoc for the getter methods.
And when
Thanks Jack.
I had planned on changing the field in the TermQuery or SpanTerm. Unless
SpanTerms also drilldown to TermQuery. Only couldn't find the getter method
name.
Guess I need to look at the docs some more.
Regards
Puneet Pawaia
On 6 Jul 2013 22:38, "Jack Krupansky" wrote:
> Each Query objec
There is a decent implementation for a fully in-memory Directory in
the Infinispan project:
https://github.com/infinispan/infinispan/tree/master/lucene
This is however not taking advantage of off-heap buffers but storing
the index in the heap itself; the reason being that Infinispan can in
this ca
You mean tmpfs - not RAM disk. Tmpfs is cool, as it plays wonderful winth mmap
(mmap just maps the RAM used by the tmpfs into the user's address space).
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: R