Re: Use one or more indexes?

2006-06-14 Thread yueyu lin
What's search engine? There's an inverted index table. Key> Document Only key, the document will be anything you like. You can use different key for different document. Lucene is not relational database, no column. Different document may have different fields. Another thing you must know

RE: Use one or more indexes?

2006-06-14 Thread Van Nguyen
number of fields, documents that don't have a particular field, etc?? Thanks, Van -Original Message- From: Liao Xuefeng [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 13, 2006 4:53 PM To: java-user@lucene.apache.org Subject: Use one or more indexes? hi, I'm new to lucene. Now

Re: Use one or more indexes?

2006-06-13 Thread wu fox
哥们: 这要看你打算如何组织你的索引了.多索引的情况下必须要考虑一个合并的问题 ,比如你要查找全文和标题就必须涉及到两个索引的搜索结果,那么你按照什么来合并呢?还有,自己合并结果是一个愚蠢的想法,你必须让lucene替你合并, 这是由于算法的速度决定的.这是多索引最主要的问题,如何去合并各个分区的结果.如果是单分区 ,当然你可以把所有相关的东西都放在一个document里,搜索是没有问题的,难度在于"更新",lucene是没有更新操作的,他会先删除doc,再重现添加,如果doc里比较复杂的话你就需要重新去做关于这个doc的索引,如果还涉及到抽取全文, 这个过程需要的时间可就大发了.比如用

Use one or more indexes?

2006-06-13 Thread Liao Xuefeng
hi, I'm new to lucene. Now I want to add full-text search for my website to search articles, images and bbs topics. I'm not sure to use only one index to search all types of these, or create 3 indexes for each of type. If I use only one index, do I have to add a 'type' field to identify document