Hi,
we are in the process of planning a search feature of a product and we
are having quite a hard time figuring out the "right" way to do it.
The requirements for our app are the following:
1) Large number of indices (at _least_ 1)
2) The amount of data involved per index is not very high, bu
Hi there!
I'm fairly new to Lucene and trying evaluate it. I want to retrieve only
documenets (companies) that has
all the words searched for in different fields, crossed in different fields
with AND search.
I have a structure in the "documents" (companies) like this :
companyName string
keyw
Erlend,
try this code:
QueryParser q = new QueryParser("text", analyzer);
q.setOperator(QueryParser.DEFAULT_OPERATOR_AND);
Query query = q.parse(search);
Hits hits = isearcher.search(query);
Best,
Martin
[EMAIL PROTECTED] wrote:
Hi there!
I'm fairly new to Lucene and trying
Why I got this error by writing for example:
Field senderNameField = Field.Text("senderName", senderName);
Field subjectField = Field.Text("subject", subject);
subjectField.setBoost(1.2);
as in the manual lucene in action??
1.2 is a double, but the method wants a float?
--
Riccardo Daviddi
---
Hi there Martin!
>try this code:
>QueryParser q = new QueryParser("text", analyzer);
What is "text" in this context ? All fields for the Field.text ?
Or like I understand it, name of a field, like my "keywords1" ??
Anyway, this code didn't work at all with "text" at least, 0 hits,
Even with one
Hi!
>Field senderNameField = Field.Text("senderName", senderName); Field
>subjectField = Field.Text("subject", subject); subjectField.setBoost(1.2);
Try:
subjectField.setBoost(1.2f);
? :-)
Erlend
-
To unsubscribe, e-mail: [E
Hi Erlend,
In my case "text" is everything. Whenever I add anything to the index, I
also add a "text" Field. So in your case, I would build the index like
you did with an additional
doc.add(Field.Text("text", bean.getCompanyName()));
after each addition.
If you then search, the "text" will g
We deliver HTML web sites to our clients on a CD. It often remains on
that CD, and they pass the CD around, and use it when they need to do
research on some topic.
We would like to offer them the ability to search the contents of the CD.
We can not install any software on their windows mach
Dan Funk wrote:
We deliver HTML web sites to our clients on a CD. It often remains on
that CD, and they pass the CD around, and use it when they need to do
research on some topic.
We would like to offer them the ability to search the contents of the CD.
We can not install any software on t
As I know you dont' need to install jre on target machine (you could put
jre onto cd and use it from cd), but this applies _only_ to standalone
apllications. this means that you will be unable to use java browser plugin.
Dan Funk wrote:
We deliver HTML web sites to our clients on a CD. It o
hello all,
lucene is already pretty fast, but i was wondering if you guys have
experience with using gcj (on linux). how much faster is it for
indexing? personally i have best performance with java-ibm, at least
under linux.
it would be interesting to hear how your experiences are.
thanks i
Martin Rode wrote:
hello all,
lucene is already pretty fast, but i was wondering if you guys have
experience with using gcj (on linux). how much faster is it for
indexing? personally i have best performance with java-ibm, at least
under linux.
it would be interesting to hear how your exper
A big index is slow to merge, slow to search, and as you mentioned,
it's slow to sync. An 1G index took me several hours to merge on a P3
1GHz 512MRam.
Mounting Lucene on NFS is also a "No GO".
I feel you choice 2 may be feasible, although complicated. That's your
job, right. :)
BTW: I guess your
In my experience, searching a read only index mounted via NFS is fine.
The NFS related issues are with locking.
I'd agree with Chris that you should try to avoid very big indexes.
--
Ian.
On 04/08/05, Chris Lu <[EMAIL PROTECTED]> wrote:
> A big index is slow to merge, slow to search, and as yo
Hi Benjamin,
I don't know what exactly your application is doing, but option 2)
sounds the most manageable to me.
Otis
--- Benjamin Reitzammer <[EMAIL PROTECTED]> wrote:
> Hi,
> we are in the process of planning a search feature of a product and
> we
> are having quite a hard time figuring out
I have a custom analyzer I've created so that certain fields, which are
indexed as Keywords, can be search exactly as they are typed in. Using this
custom analyzer however produces not hits. Using Luke, I can see that the
field values are identical to the values passed in on the query...
My query
Add some debugging to the if statement that handles "class.name" field.
My first guess is that you're not getting in that if case when
querying.
If that turns out to be true, consider using PerFieldAnalyzerWrapper to
accomplish the same thing.
Otis
--- "Peter T. Brown" <[EMAIL PROTECTED]> wrote:
Thank You.
Yes, I did check that and the CharTokenizer is correctly being used for the
field in question.
How should I use PerFieldAnalyzerWrapper ?
> From: Otis Gospodnetic <[EMAIL PROTECTED]>
> Reply-To:
> Date: Thu, 4 Aug 2005 10:25:36 -0700 (PDT)
> To:
> Subject: Re: Using Custom Anal
On Thursday 04 August 2005 16:46, John Haxby wrote:
> Lucene, compiled with gcj I believe, is part of Fedora Core 4.
Sounds interesting, but what exactly does it mean? Is it still a jar file
that can be used from Java or is it a shared library that can only be used
from C(++)?
Regards
Daniel
I have a Multisearcher, when I have to close multisearcher
(multisearcher.close()) and if I do this I have to close every
IndexSearcher?
In what order I have to do this things?
My problem are because, I modify one index (my multisearcher are
composed by 6 Index) I don't know if my process to "r
Check http://www.docsearcher.tk/
They have a way to create searchable CDs ( I did not tested it :-) )
Jean-Paul
At 16:31 04/08/2005, you wrote:
We deliver HTML web sites to our clients on a CD. It often remains on
that CD, and they pass the CD around, and use it when they need to do
r
Yes. use 1.2f there. That method accepts floats, not doubles. That
could be an error in the Lucene book.
Otis
--- Riccardo Daviddi <[EMAIL PROTECTED]> wrote:
> Why I got this error by writing for example:
>
> Field senderNameField = Field.Text("senderName", senderName);
> Field subjectField
We are please to announce the 0.5 major feature release of Compass
Object/Search Engine Mapping (OSEM) framework. This release makes
integrating search capability with existing development frameworks (like
Hibernate and Spring) even simpler. Compass uses declarative mapping
technology, which me
Shay.
Do you have a web site that we can visit to discover more about your
technology?
-Original Message-
From: Shay Banon [mailto:[EMAIL PROTECTED]
Sent: 04 August 2005 22:34
To: java-user@lucene.apache.org
Subject: Compass 0.5 Released
We are please to announce the 0.5 major feature r
Of course, sorry ;-(
http://compass.sourceforge.net
Mark Benussi wrote:
Shay.
Do you have a web site that we can visit to discover more about your
technology?
-Original Message-
From: Shay Banon [mailto:[EMAIL PROTECTED]
Sent: 04 August 2005 22:34
To: java-user@lucene.apache.org
HI All,
I am a Lucene user for a month or so.. After some bad beat ups I learnt that
only one thread can write into the index location.
SO after that everything was smoooth, but not I am getting
"File Not Found : (some index file)"..Exception.
Once I get this exception the search also st
HI All,
I am a Lucene user for a month or so.. After some bad beat ups I learnt that
only one thread can write into the index location.
SO after that everything was smoooth, but not I am getting
"File Not Found : (some index file)"..Exception.
Once I get this exception the search also st
Hello,
I am just posting this question out here since this might be a common
problem and some of you might have good pointers.
Is there algorithms/api built into lucene that would help de pluralize
words while indexing and/or while searching the index? Are there
analyzers that do this already?
T
i want to use lucene to search shortly (within a second) after adding a
document.
closing a writer to ensure the new document is written and then opening an
index reader seems to be too slow on large indexes.
how do other people
handle this?
(i know this can be solved with a database but i'd
how well does it work? does it provide the ability to search shortly after
adding a document?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi
Luceners
Apologies.
I have along Search String as given below...
SearchWord = "\"" + "Dough
Cutting" + "\"" + " " + "Otis
Gospodnetic" + " " + "\"" + "Erik Hatcher" +
"\"" + " "
+
"Authors of " + "\"" + "Lucene In
Action" +"\"";
And prior to
31 matches
Mail list logo