You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Karl Koch <Th...@gmx.net> on 2005/01/27 14:38:40 UTC

Different Documents (with fields) in one index?

Hello all,

perhaps not such a sophisticated question: 

I would like to have a very diverse set of documents in one index. Depending
on the inside of text documents, I would like to put part of the text in
different fields. This means in the searches, when searching a particular
field, some of those documents won't be addressed at all.

Is it possible to have different kinds of Documents with different index
fields in ONE index? Or do I need one index for each set?

Karl

-- 
10 GB Mailbox, 100 FreeSMS http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse f�r Mail, Message, More +++

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Different Documents (with fields) in one index?

Posted by Aad Nales <aa...@rotterdam-cs.com>.
Nope,

it is very possible. We have an index that holds the search info for 
documents, messages in discussion threads, filled in forms etc. etc. 
each having their own structure.

cheers,
Aad

Karl Koch wrote:

>Hello all,
>
>perhaps not such a sophisticated question: 
>
>I would like to have a very diverse set of documents in one index. Depending
>on the inside of text documents, I would like to put part of the text in
>different fields. This means in the searches, when searching a particular
>field, some of those documents won't be addressed at all.
>
>Is it possible to have different kinds of Documents with different index
>fields in ONE index? Or do I need one index for each set?
>
>Karl
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: Different Documents (with fields) in one index?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Karl,

This is completely fine.  You can have documents with different fields
in the same index.

Otis

--- Karl Koch <Th...@gmx.net> wrote:

> Hello all,
> 
> perhaps not such a sophisticated question: 
> 
> I would like to have a very diverse set of documents in one index.
> Depending
> on the inside of text documents, I would like to put part of the text
> in
> different fields. This means in the searches, when searching a
> particular
> field, some of those documents won't be addressed at all.
> 
> Is it possible to have different kinds of Documents with different
> index
> fields in ONE index? Or do I need one index for each set?
> 
> Karl
> 
> -- 
> 10 GB Mailbox, 100 FreeSMS http://www.gmx.net/de/go/topmail
> +++ GMX - die erste Adresse f�r Mail, Message, More +++
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org