В сообщении от Sunday 13 April 2008 14:20:01 Grant Ingersoll написал(а):
Thanks for your reply!
> > I don't want it to work more than half second on
> > reasonable sized index. Also, I don't want to hard-code exact list
> > of fields,
> > I might add them as I develop the system. Is this doable,
For starters, you might have a look at Jackrabbit (Content Repo. built
on Lucene) as I know it powers several CMS systems.
More below.
On Apr 3, 2008, at 8:24 AM, Илья Казначеев wrote:
Hello.
We've designing a CMS in Java, and I've trying to implement site
search
function using lucene.
You could try something like this, which use when I put my own documents
together:
public Document getDocument(){
Document doc = new Document();
doc.add(new Field("db_key", this.getDb_key(), Field.Store.YES,
Field.Index.UN_TOKENIZED));
doc.add(new Field("ac
В сообщении от Thursday 03 April 2008 16:24:15 Илья Казначеев написал(а):
> - Is there a way to set weights for different fields? Let's say, content
> have a weight of 1, title have a weight of 5 and picture subscribe have a
> weight of 0.5. If no, can I do that by hand?
Already found field.setBoo
Hello.
We've designing a CMS in Java, and I've trying to implement site search
function using lucene.
The basic conception is that:
- Site features numerous objects that we'd like to throw into index: pages,
various text blocks on those pages, descriptions and keyword lists of those
pages, sta