Hi Yuhan,
By what I understand you are trying to construct an index and add a field to
it which would not be analyzed. Am I correct? You could simply declare that
field as
new Field(.. , Index.NOT_ANALYZED)
http://lucene.apache.org/java/3_0_1/api/core/org/apache/lucene/document/Field.html
Al
I'm trying to use the QueryParser in 3.0.2 to make "foo and bar" (with
the quotes) return documents with the exact phrase "foo and bar". When I
run it through the QueryParser (with a StandardAnalyzer) I end up with
"foo ? bar", which doesn't match the documents in the index. I know that
"and" is a
Hi all,
I am trying to index documents by phrases (multiple words) in the text, and
want to get around the StandardAnalyzer for this field. (however, I will
still
use standardAnalyzer for the other fields in the same document).
so, how should I approach it? is there a way to construct a field by
Ok, thanks a lot !
I will try that
On 14 February 2011 13:25, Anshum wrote:
> Hi Liat,
> You could use open a multi/parallelmultisearcher on the indexes that you
> have and then construct an OR query e.g. (contents:A OR text:A)
> I am assuming that the field names do not overlap. If that is not
One thing to note is that the Stanford POS Tagger is licensed using GPL v2. A
commercial license is available, but it doesn't appear to be free ($3k min if I
read correctly).
I wonder what it would take to make this available using OpenNLP which has a
friendlier license.
-Original Message
Hi Liat,
You could use open a multi/parallelmultisearcher on the indexes that you
have and then construct an OR query e.g. (contents:A OR text:A)
I am assuming that the field names do not overlap. If that is not the case
then you'd need another solution.
--
Anshum Gupta
http://ai-cafe.blogspot.com
If you actually intend at getting the intersection of 2 results from a
'union' of 2 indexes, you could use the filter and query approach. You could
use a multi searcher or a parallel multi searcher to perform the search in
this case.
--
Anshum Gupta
http://ai-cafe.blogspot.com
On Mon, Feb 14, 20
Hey All,
I try to construct a boolean query that has to run on 3 different set of
indexes:
in two of them, it should query a field name "contents" and in one of them,
it should query a field named "text".
How can I use MultiSearcher to support this structure?
Thanks a lot,
Liat
Hi,
I have two index files. I am searching id1 from Index A and id2 from Index B.
By using id1 (Index A) results , I am searching id2 from Index B. I stored
these two index files in local file system.
I am using filter as a result of Index A.
IndexSearcher.search(Query,filter,1);
I am runnin
There's some stuff in an old thread at
http://www.gossamer-threads.com/lists/lucene/java-user/61602 that
might be relevant. The idea of storing the index in the jar and
extracting it before use seems to me to have the greatest chance of
success.
--
Ian.
On Mon, Feb 14, 2011 at 4:34 PM, Gong Li
Hi,
I need to generate a *single *executable JAR.
In my code, it needs the wordnet index directory.
So When I run the JAR, it needs local directory in my computer. And other
computer can't run.
Is there any way to search by using wordnet synonyms index with a single
executable file?
Thx.
11 matches
Mail list logo