Hi All,
As i am new in lucene i need help to write some function on lucene.
Pls see below i list out functionality i want.
i need term membership means term belongs to which fields.
e.g. if enter query like: lucene apache
so it return me lucene apache is member of contents
As per
Alexander,
to solve your problem, you have to carefully understand how lucene
handles fields.
Lucene can handle the value of the document fields in different ways;
the different aspects to care of are:
- indexing: whether the value is indexed or not. It may look strange
to store data on a Lucene
For your date interval search requirement, Lucene can do range search.
You need to use ConstantScoreRangeQuery for better performance.
You'd better select all your additional attributes into the lucene
document. This will lead to some data duplications, especially look up
values. But it's a trade
Everything you need is already out there (in Carrot2 SVN):
- checkout the repository
- build a webapp demo and try it (it works with Google and Yahoo APIs)
- now add a custom input component utilizing a pre-built Lucene index
and you're set.
D.
arun sharma(rinku) wrote:
Hello gentlemen,
If you are working in Windows, then "build/index/lucene" may not work.
Otis
- Original Message
From: mcarcelen <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Tuesday, July 4, 2006 6:55:15 AM
Subject: Examples Lucene In Action
Hi,
I´m trying to run the source examples that a
Alexander Mashtakov wrote:
But, the database is going to be big enough, and the list of IDs
returned by
Lucene too. This
may cause high memory usage and slow sql query speed (for instance 1000 IDs
in "IN (id1, id2 ...)"
sql filter)
For this part, I recommend using a working table to hold the
Thank you *Giulio,*
I read some information about this approach. Is it possible to store in
Lucene field
several FKs ? For example, a document has serveral mappings to category
table (N:M).
The other question is about dates - is it possible to query Lucene for date
interval (from -MM-DD to YY
If I'm understanding you correctly, you're using Lucene to store IDs and
index the columns that would normally be full-text indices in MySQL, then
use the IDs to retrieve the information from the database. This is more of a
MySQL issue than a Lucene issue, but it suggests a flaw in your approach:
Hi Alexander,
if the set of foreign keys you are using to filter the lucene results
with some SQL query, I suggest you to include the foreign keys values
as additional lucene fields, and let lucene return you the exact set
of document IDs.
I had excellent results with this technique.
Hope this
Hi folks,
I'm looking for a solution/best practices concerning Lucene and SQL database
integration.
The database (MySQL) is already developed and contains data. I've tried
MySQL full-text
search, but it's quite slow and doesn't have the possibility to intergate
custom analyzers.
Phrase search is
It is working!
Thanks Winton.
Regards
Sam
-Original Message-
From: Winton Davies [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 7:54 PM
To: java-user@lucene.apache.org
Subject: RE: Apache Lucene 2.0
Hi,
Replace the line
query = QueryParser.parse(queryString, "contents", analy
Hi,
Replace the line
query = QueryParser.parse(queryString, "contents", analyzer);
in
lucene/src/jsp/results.jsp
with
QueryParser qp = new QueryParser("contents", analyzer);
query = qp.parse(queryString);
Something changed in the QP api - this reflects the new call. I'm n
Hi all,
Thanks a lot Erik for your help
You´re right, I was wrong with the version of Lucene and the bugs were in my
head.
I´m sure I´ll soon ask more about Lucene
Regards
Teresa
-Mensaje original-
De: Erik Hatcher [mailto:[EMAIL PROTECTED]
Enviado el: martes, 04 de julio de 2006 13:5
Thanks Erik, I'm trying to run the example given along with Lucene 2.0,
but its giving error.
I tried debuging it, but unnable to find the solution.
The error message it gives is as follows..
Error compiling file:
D:\projects\server\web\tomcat\work\_\localhost\rChive\Lucene\/results_js
p.j-ava
On Jul 4, 2006, at 2:27 AM, Sarvadnya Mutalik wrote:
Hi all, I need information about which version of Apache Lucene search
engine you recommend,
which is stable and recomended for production or mission-critical
systems.
Lucene 2.0 is the latest release version. That is the recommended
start
Teresa,
What bugs are you getting, specifically? (always a helpful addition
to a bug report :)
One thing you can try is simply unzipping the source code package and
running "ant" to ensure all is well.
One thing to note is the code from the book, the original code that
is, is for Luce
Hi,
I´m trying to run the source examples that are included in the book
Mannig-Lucene in Action but I get bugs
I´m working in windows, this is the first example, it try to run Indexer.
% java lia.meetlucene.Indexer build/index/lucene
Can anyone help me?
Thanks a lot
Teresa
The simplest solution to this I would suggest is to decode the id to
relevance score e.g.
Select id, addfield
>From mytable
Where id in (1,2,3,4,5,50,60,70)
Order by case id when 1 then 0.9 when 2 then 0.8 when 3 then 0.7
end desc
You will have to generate the in () and the case statement bu
18 matches
Mail list logo