Hi,
Do it like that:
BooleanQuery bq = new BooleanQuery();
bq.add(new MatchAllDocsQuery(), BooleanClause.Occur.MUST);
bq.add(new TermQuery(..), BooleanClause.Occur.MUST_NOT);
Uwe
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Orig
I've had to deal with exactly this same scenario and, from what I know,
there is no equivalent in Lucene to a SQL != kind of query. So, you have to
have some way to select "everything" (whatever that means in your scenario)
and then remove the stuff that you don't want (the NOT portion). For my
app
Hi,
What I need is a Not TermQuery. I did not see one in the API, so I did the
following:
Query query = new BooleanQuery(new BooleanClause(new
TermQuery(..), BooleanClause.Occur.MUST_NOT)));
This did not produce the correct search result. Does anyone have any idea on
how to accomplish this?
And
I've tried the suggestion below, but it really doesn't seem to have any impact.
I guess that's not surprising since 80% of the CPU time when I ran hprof was in
String.intern(), not in the StringHelper class.
Clearly, if I'm going to hack things up at this level, I've got some work do
to, inclu
You could have a look at lucene spatial in the contrib!
--
Anshum
http://blog.anshumgupta.net
Sent from BlackBerry®
-Original Message-
From: farouk alhassan
Date: Tue, 23 Nov 2010 10:34:33
To:
Reply-To: java-user@lucene.apache.org
Subject: Lucene with Geospatial Data
Hi All,
Is there
Hi All,
Is there a lucene plugin that allows indexing and searching of geospatial Data?
22 nov 2010 kl. 10.56 skrev :
> Using the SearchHandler with the deftype=”dismax” option enables the
> DisMaxQParserPlugin. From investigating it seems, it is just tokenizing by
> whitespace.
>
> Although by looking in the code I could not find the place, where this
> behavior is enforced? I
On Tue, Nov 23, 2010 at 4:50 PM, wrote:
> Yes, payloads I will use. But they perform at score time and not at search
> time. I just wanted to know if there is anything like that.
>
So what is the difference? Maybe you can elaborate a little what are
you trying to do?
simon
> "not even on trunk"
Yes, payloads I will use. But they perform at score time and not at search
time. I just wanted to know if there is anything like that.
"not even on trunk" does this mean there is a discussion about this ongoing
somewhere? I'm just curious.
Jan
-Original Message-
From: ext Simon Willnau
Attribute Serialization is not implemented yet, not even in trunk. You
can use payloads instead.
Simon
On Tue, Nov 23, 2010 at 2:43 PM, wrote:
> Hi,
>
> I found a blog post from 2008 where it says, there will be additional custom
> attributes for tokens in the future, that will be searchable.
Hi,
I found a blog post from 2008 where it says, there will be additional custom
attributes for tokens in the future, that will be searchable.
What is the status of these?
Jan
On Mon, Nov 22, 2010 at 6:50 PM, Burton-West, Tom wrote:
> Hi all,
>
> I see in the javadoc for the ICUTokenizer that it has special handling for
> Lao,Myanmar, Khmer word breaking but no details in the javadoc about what it
> does with CJK, which for C and J appears to be breaking into unigrams
Sounds like a good plan to me. Unless you've got evidence of
inefficiency, don't worry about it.
--
Ian.
On Mon, Nov 22, 2010 at 4:20 PM, ZYWALEWSKI, DANIEL (DANIEL)
wrote:
> Hello,
> I'm just stuck with one problem and don't know how to figure it out. I'm
> working on the indexation of the o
13 matches
Mail list logo