Re: indexing database

2009-01-22 Thread cemsoft
;>System.out.println(sql); >>ResultSet rs = conn.createStatement().executeQuery(sql); >>while (rs.next()) { >>Document d = new Document(); >>d.add(new Field("id", rs.getString(&qu

Re: indexing database

2009-01-21 Thread Chris Lu
d = new Document(); >d.add(new Field("id", rs.getString("id"), > Field.Store.YES, > Field.Index.NO)); >d.add(new Field("content", rs.getString("content"), > Field.Store.YES, > Field.Index.TOKENIZED)); >

indexing database

2009-01-21 Thread cemsoft
content"), Field.Store.YES, Field.Index.TOKENIZED)); writer.addDocument(d); } System.out.println("indexing finished ..."); } best regards cem -- View this message in context: http://www.nabble.co

Re: Why indexing database is necessary? (RE: indexing database)

2008-03-05 Thread Shalin Shekhar Mangar
AIL PROTECTED] > > Sent: Tuesday, March 04, 2008 1:33 PM > > To: java-user@lucene.apache.org > > Subject: Why indexing database is necessary? (RE: indexing database) > > > > Could anyone provide any insight on why someone would use nutch/lucene > > or any other

Re: Why indexing database is necessary? (RE: indexing database)

2008-03-04 Thread Erick Erickson
y the links, not the actual content. > > So a search engine works only in the index space, whereas a database > > query engine would have to work in both index and content space... > > > > > > ND > > > > > > > > -----Original Message- > > From: W

Re: Why indexing database is necessary? (RE: indexing database)

2008-03-04 Thread Chris Lu
: java-user@lucene.apache.org > Subject: RE: Why indexing database is necessary? (RE: indexing database) > > Don't forget the number 1 reason: speed. For certain types of queries a > search engine can return results orders of magnitude faster than a > database. > I&#

RE: Why indexing database is necessary? (RE: indexing database)

2008-03-04 Thread Will Johnson
#x27; which are probably the ones you would want anyways. - will -Original Message- From: Duan, Nick [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 2:29 PM To: java-user@lucene.apache.org Subject: RE: Why indexing database is necessary? (RE: indexing database) Hmm, I guess t

RE: Why indexing database is necessary? (RE: indexing database)

2008-03-04 Thread Duan, Nick
ginal Message- From: Will Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 2:18 PM To: java-user@lucene.apache.org Subject: RE: Why indexing database is necessary? (RE: indexing database) Don't forget the number 1 reason: speed. For certain types of queries a search engine

RE: Why indexing database is necessary? (RE: indexing database)

2008-03-04 Thread Will Johnson
t to say that a search engine is always better, just the it often times is for when the inputs and outputs are carefully defined. - will -Original Message- From: Darren Hartford [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 1:52 PM To: java-user@lucene.apache.org Subject: RE: Why in

RE: Why indexing database is necessary? (RE: indexing database)

2008-03-04 Thread Darren Hartford
k [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2008 1:33 PM > To: java-user@lucene.apache.org > Subject: Why indexing database is necessary? (RE: indexing database) > > Could anyone provide any insight on why someone would use nutch/lucene > or any other search engines to in

Why indexing database is necessary? (RE: indexing database)

2008-03-04 Thread Duan, Nick
e database content using search engines, what would be the best approach other than de-normalizing the database? Thanks a lot in advance! ND -Original Message- From: payo [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 12:36 PM To: [EMAIL PROTECTED] Subject: indexing database hi to

Re: a question about indexing database tables

2007-02-26 Thread Erick Erickson
You'll get no hits since there is no document in the index that has both fields. On 2/26/07, Mohammad Norouzi <[EMAIL PROTECTED]> wrote: Thank you very much Erick. Really I didnt know about this. I've just thought we can not add two different documents. now my question is, if I index the data i

Re: a question about indexing database tables

2007-02-26 Thread Mohammad Norouzi
Thank you very much Erick. Really I didnt know about this. I've just thought we can not add two different documents. now my question is, if I index the data in the way you said and now I have a query say, "(table1_name:john) AND (table2_address:Adam street)" using MultiFieldQueryParser, what is th

Re: a question about indexing database tables

2007-02-26 Thread Erick Erickson
No, that's not what I was talking about. Remember that there's no requirement in Lucene that each document have the same fields. So, you have something like... Document doc = new Document() doc.add("table1_id", id); doc.add("table1_name", name); IndexWriter.add(doc); Document doc = new Document

Re: a question about indexing database tables

2007-02-25 Thread Mohammad Norouzi
Hi Erick thank you and sorry for taking long my reply. I am involving in a project. I was thinking of your idea about storing all tables in the same field. it seems to me a good idea, but some vague issues. first, how to create a lucene's document. did you mean, storing all tables by joining all

Re: a question about indexing database tables

2007-02-22 Thread Erick Erickson
OK, I was off on a tangent. We've had several discussions where people were effectively trying to replace a RDBMS with Lucene and finding out it that RDBMSs are very good at what they do ... But in general, I'd probably approach it by doing the RDBMS work first and indexing the result. I think th

Re: a question about indexing database tables

2007-02-22 Thread Mohammad Norouzi
Thanks Erick but we have to because we need to execute very big queries that create traffik network and are very very slow. but with lucene we do it in some milliseconds. and now we indexed our needed information by joining tables. it works fine, besides, it returns the exact result as we can get

Re: a question about indexing database tables

2007-02-22 Thread Erick Erickson
don't do either one Search this mail archive for discussions of databases, there are several long threads discussing this along with various options on how to make this work. See particularly a mail entitled *Oracle/Lucene integration -status- *and any discussions participated in by Marcelo O

a question about indexing database tables

2007-02-22 Thread Mohammad Norouzi
Hello In our application we have to index the database tables, there is two way to make this 1- index each table in a separate directory and then keep all relation in order to get right result. in this method, we should use filters to overcome the problem of searching on another search result. 2.

Re: help in indexing database tables

2005-12-18 Thread Daniel Naber
On Sonntag 18 Dezember 2005 08:16, [EMAIL PROTECTED] wrote: > hi.. > I would like to know how to index database tables using Lucene. As this question comes up regularly, I have added a new FAQ item: http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-109358021acbfc89456e446740dc2bbf9049950f Reg

help in indexing database tables

2005-12-17 Thread shreeya
hi.. I would like to know how to index database tables using Lucene. I am novice in using Lucene and appreciate generous help and thorough guidelines as how and where to start in order to make Lucen index database tables and perform searching. Regards Shreeya

help in indexing database tables

2005-12-17 Thread shreeya
hi.. I would like to know how to index database tables using Lucene. I am novice in using Lucene and appreciate generous help and thorough guidelines as how and where to start in order to make Lucen index database tables and perform searching. Regards Shreeya