Hi,
Lucene doesn't find following value. Some issues with PhraseQuery.
indexed value: pink-I
Indexed tokens:1: [pink:0->5] 2: [pinki:0->5] 3: [i:5->6] (ex. explanation:
"pink" is a term "0->5" term-position)
And I have indexed in a field called "fieldName".
My lucene search with the query [fieldN
Strangely..
My lucene query: fieldName:"pinki i" finds document. (see "i" in "pinki")
Jelda
> -----Original Message-
> From: Ramana Jelda [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 17, 2007 12:33 PM
> To: java-user@lucene.apache.org
>
Have you used Luke to examine your index and see if it's
> indexed as you expect?
>
> Best
> Erick
>
> On 8/17/07, Ramana Jelda <[EMAIL PROTECTED]> wrote:
> >
> > Strangely..
> > My lucene query: fieldName:"pinki i" finds document. (see "i&quo
Hi Hoss & Erick,
Thx for your responses.
I found the bug in my code. It is not something todo with positions (As I
said in my first mail, I was using right position increments) and also
nothing to do with offsets. Offsets are just ignored, only useful for
Highlighter perhaps. Anyway I am not intere
I really lack this feature from lucene too.
Whatever the requirements from Mohammed, There surely I see some
improvements in search performance.
My argument here is, why not lucene provides a mechanism to be able to
provide custom document ids?
> -Original Message-
> From: Find Me [mailt
Hi Hoss,
Exactly in this scenario, I would love to use my custom generated document
id.
The array reference number is MyId & its value is some-interested-value
matched to MyID.
So,how can I generate custom document id.?
Jelda
> -Original Message-
> From: Chris Hostetter [mailto:[EMAIL PR
gt; Subject: RE: How can I use SortComparator in my case?
>
> You'll need to do it manually and not with Lucene.
>
> Just grab all the results from Lucene and process them yourself.
>
> Aviran
> http://aviransplace.com
>
> -Original Message-
> From: Ram
Yeap. I strongly support John.
I knew when I reopen indexes. Then what is the reason to wait for garbage
collector..
And that too, FieldCache uses WeakHashMap and that may lead some memory
leaks.
Jelda
> -Original Message-
> From: John Wang [mailto:[EMAIL PROTECTED]
> Sent: Friday, March
ue, you might trysearchinng for that. Also, try
> > "buckets" which was the header of that discussion.
> >
> > You can also think about clever indexing schemes with fields that
> > allow you to sort however you really need to, although I confess
> > nothin
Actually I don't like well my proposed way of implementation.
I wanna play with score to implement the similar logic as I mentioned in my
solution.
But how?
Any suggestions, I would really appreciate. :)
Jelda
> -Original Message-
> From: Ramana Jelda [mailto:[EMAIL PROTECT
But I also see importance of ignoring score calculation.
If you put it aside performance gain, is there any possibility to completely
ignore scoring calculation?
Jelda
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Yonik Seeley
> Sent: Wednesday,
Its not a trick. And this is what lucene meant for.
Jelda
> -Original Message-
> From: Sammpathkumar, C [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 13, 2007 9:36 AM
> To: java-user@lucene.apache.org
> Subject: Using Lucene as compressed DB
>
> Hi,
>
> I am looking for a in memor
Hi ,
Of course this statement is very expensive.
-->document.get("CAMPCATID")==null?"":document.get("CAMPCATID");
Use StringIndex/FieldCache/something similar to implement category counting.
:)
Jelda
> -Original Message-
> From: Bhavin Pandya [mailto:[EMAIL PROTECTED]
> Sent: Thursday,
Hi Amol,
Yeah you should close reader to get updated index into effect.
Regards,
Jelda
-Original Message-
From: Amol Bhutada [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 4:21 PM
To: java-user@lucene.apache.org
Subject: indexreader refresh
If I have a reader and searcher
Hi,
You are right. There can be multiple indexreaders but only one indexwriter
is advised.
No, we can not use two indexwriters simultaneously.
Jelda
-Original Message-
From: K.A.Hussain Ali [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 5:01 PM
To: java-user@lucene.apache.o
, correct?
-Original Message-
From: Ramana Jelda [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 9:08 AM
To: java-user@lucene.apache.org
Subject: RE: searching and indexing simultaneously...
Hi,
You are right. There can be multiple indexreaders but only one indexwriter
is advi
HI,
I am doing the same.
My design contains.
Index Repository: is responsible for keep up to index.:)Index-configurator.
Index-manager: Real CRUD indexing..
And ofcourse index-searcher: I want results ..:)
U know very well->Searcher and Indexer are both separate functionalities..
So the reason wh
Hi,
Exactly,
I have already implemented in my application using annotations.
and some changes to query input in my application.
I don't see where you provide Analyzer annotation. It seems u forgot it.
Nice coincidence.
Jelda
> -Original Message-
> From: Seth Fitzsimmons [mailto:[EMAI
I look forward for it also.
I even first look forward for LuceneInAction book to get up to date with
lucene 2.0.
Regards,
Jelda
> -Original Message-
> From: Ernesto De Santis [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 10, 2006 2:49 PM
> To: Lucene Users List
> Subject: Lucene In Act
Hi,
You are opening IndexSearcher for each and every search request, which is
not adviasable.
Cache IndexSearcher or IndexReader.. This will surely improve your speed .
Greetings,
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 10, 2006 3
Hi,
PhraseQuery is not working as I wanted,when indexed with synonyms.
ex:
I have indexed name: "sony dsc-d cybershot" as following tokens provided
token positions.
1: [sony:0->4]
2: [dsc:5->10]
3: [dscd:5->10]
4: [d:5->10]
5: [cybershot:11->20]
So "dsc-d" is tokenized into 3 tokens "dsc
Hi,
I have a got strange problem.
My searchterm : "mp3 player"
Lucene Query :
+(
+(
spanNear([productName:mp, productName:3], 3, true)
spanNear([subName:mp, subName:3], 3, true)
)
+(productName:player subName:player)
)
Throws following lucene BooleanScorer2 exception.
Caused by:
uesday, March 28, 2006 11:12 PM
> To: java-user@lucene.apache.org
> Subject: Re: BooleanQuery containing SpanNearQuery throws
> ArrayOutOfBoundsException .
>
> Comments inline below.
>
> On Tuesday 28 March 2006 18:29, Ramana Jelda wrote:
> >
> > Hi,
> > I
Hi,
Actually lucene does not provide you a straight forward Query to get UNIQUE
results.
But as far as I know, u can use HitsCollector & BitSet combination to
count/get unique results.
Regards,
Jelda
> -Original Message-
> From: Java Programmer [mailto:[EMAIL PROTECTED]
> Sent: Thursday
No.. I don't see your solution is performant..
If each lucene Document corresponds to a row in 'A join B' then Index
explodes..
Index size drastically increases.
Why not then creating two indexs A and B.
And search for A and then from obtained A documents information search in B.
It seems for me
Hi,
I would use index & search analyzers in this case..
"b-trunk" is analyzed & indexed as b,btrunk,trunk
Search term "b-trunk" is anlayzed using search analyzer as "btrunk" and
searched. U will find the result..
Similarly for 12412-235, 12412-121, 12412-etc , indexed as
12412,12412235,235 etc...
> Which analyzer are you recommending I use for this?
>
> -Original Message-
> From: Ramana Jelda [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 18, 2006 3:45 AM
> To: java-user@lucene.apache.org
> Subject: RE: hypens
>
> Hi,
> I would use index & search analyzers in t
Hi,
I am getting OutOfMemoryError , while enumerating through TermEnum after
invoking reader.terms(fieldName).
Just to provide you more information, I have almost 1 unique terms in
field A. I can successfully enumerate around 5000terms but later I am
gettting OutOfMemoryError.
I set jvm max
OutOfMemoryError.
Any advise is relly welcome.
Thx,
Jelda
> -Original Message-
> From: Ramana Jelda [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 02, 2006 12:55 PM
> To: java-user@lucene.apache.org
> Subject: OutOfMemoryError while enumerating through
> reader.terms(fieldNam
I am trying to implement category count almost similar to CNET approach.
At the initialization time , I am trying to create all these BitSets and
then trying to and them with user query(with a bitset obtained from
queryfilter containing user query)..
This way my application is performant..Don't u
query, using HitCollector docids, I will try to calculate
each category count.. I think it is self understandable..
What do u think??
Any advice is really welcome..
Note: Actually, I have around 2 unique cateogry ids..
Thx,
Jelda
> -Original Message-
> From: Ramana Jelda [
Thx for ur quick reply.
I will go through it.
Rgds,
Jelda
> -Original Message-
> From: mark harwood [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 02, 2006 5:03 PM
> To: java-user@lucene.apache.org
> Subject: RE: OutOfMemoryError while enumerating through
> reader.terms(fieldName)
>
FieldCache.getStringIndex(reader,fieldName)
Good luck
Jelda
> -Original Message-
> From: Chun Wei Ho [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 04, 2006 12:36 PM
> To: java-user@lucene.apache.org
> Subject: Obtain terms for only particular field(s)
>
> Hi,
>
> I have a pretty lar
Hi,
You can use BooleanQuery.setMaxClauseCount() to set to your required
maximum clause count.
But ofcourse too big clause count is not advisable.
May be you need to find some strategy to reduce this range. Ex:Reduce date
ranges to 20060505 from including timestamp like 20060505120530 :)
All t
But this BitSet strategy is more memory consuming mainly if you have
documents in million numbers and categories in thousands.
So I preferred in my project FieldCache strategy.
Jelda
> -Original Message-
> From: Kapil Chhabra [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 16, 2006 7:38 A
o: java-user@lucene.apache.org
> Subject: Re: Aggregating category hits
>
> Hi Jelda,
> I have not yet migrated to Lucene 1.9 and I guess FieldCache
> has been introduced in this release.
> Can you please give me a pointer to your strategy of FieldCache?
>
> Thanks & Regards,
&g
Kapil Chhabra wrote:
> > Thanks a lot Jelda.
> > I'll try this get back with the performance comparison chart.
> >
> > Regards,
> > kapilChhabra
> >
> > Ramana Jelda wrote:
> >> Hi Kapil,
> >> As I remember FieldCache is in luce
Hi,
It seems anaylzers are never get called for UnTokenized fields(Seems no luck
either using PerFieldAnalyzer).
What should I do, If I would like to use analyzer for Untokenized fields.
Lets say for Keyword or Unstored fields.
I basically would like to use lucene Sort functionality on UnTokenize
Thanks for your replies.
> -Original Message-
> From: Chris Hostetter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 13, 2006 9:13 AM
> To: java-user@lucene.apache.org
> Subject: Re: How can I tell Lucene to also use analyzer for
> Keyword fields
>
>
> : It seems anaylzers are never
Hi,
You are wrong.
In ur case (If I ignore any updates to index) , One IndexSearcher object is
enough.
IndexSearcher is thread safe.
Jelda
> -Original Message-
> From: heritrix.lucene [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 27, 2006 10:58 AM
> To: java-user@lucene.apache.org
> S
Yeah!! There are no methods that you mentioned. But there are some ways to
do this.
TopFieldDocs:search(Query query, Filter filter, int n, Sort sort)
If above method does not solve your purpose, then
My suggestion is to use method search(Query query, Filter filter,
HitCollector results) and pa
Collect searched results in your own HitCollector and return results how
ever you like..
:)
Jelda
> -Original Message-
> From: Rupinder Singh Mazara [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 01, 2006 5:13 PM
> To: java-user@lucene.apache.org
> Subject: retrieving LowestDoc
>
>
HI Marcus,
Somehow I like your wording..
Can't stop replying you.
Jelda
> -Original Message-
> From: Marcus Falck [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 08, 2006 2:05 PM
> To: java-user@lucene.apache.org
> Subject: SV: Using Hibernate to store Lucene Indexes in a Database
>
43 matches
Mail list logo