Re: Special field values

2004-10-13 Thread Daniel Naber
On Wednesday 13 October 2004 08:45, Michael Hartmann wrote:

 The field should store a vector of values that
 indicate whether or not a term exists in a document or not.

You can just add more than one field with the same name but different 
values per document, then searching for single values should work.

Regards
 Daniel

-- 
http://www.danielnaber.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Special field values

2004-10-12 Thread Otis Gospodnetic
Hello Michael,

This is something you'd have to code on your own.

Otis

--- Michael Hartmann [EMAIL PROTECTED] wrote:

 Hi everybody,
 
 I am thinking about extending the Lucene search with metadata in the
 following way
 
 Field Value

---
 Title (n1, n2, n3, ..., nm) | ni element of {0,1} and m amount of
 distinct
 metadata values for title
 
 Expressed in an informal way, I want to store a tuple of values in a
 field.
 The values in the tuple show whether a value is used in the title or
 not.
 
 My question is then, whether I have to code that on my own or if the
 model
 is already set up to work like that.
 
 Thanks,
 Michael
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Special field values

2004-10-12 Thread Paul Elschot
On Tuesday 12 October 2004 15:02, Otis Gospodnetic wrote:
 Hello Michael,

 This is something you'd have to code on your own.

 Otis

 --- Michael Hartmann [EMAIL PROTECTED] wrote:
  Hi everybody,
 
  I am thinking about extending the Lucene search with metadata in the
  following way
 
  Field   Value

 ---

  Title   (n1, n2, n3, ..., nm) | ni element of {0,1} and m amount of
  distinct
  metadata values for title
 
  Expressed in an informal way, I want to store a tuple of values in a
  field.
  The values in the tuple show whether a value is used in the title or
  not.

A Lucene index can easily be used to determine whether or not a term is
in a field of a document:

IndexReader.open(indexName).termDocs(new Term(term, field)).skipTo(documentNr)

returns the boolean indicating that.
What do you need the {0,1} values for?

Regards,
Paul Elschot.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Special field values

2004-10-12 Thread Paul Elschot
On Tuesday 12 October 2004 19:27, Paul Elschot wrote:


 IndexReader.open(indexName).termDocs(new Term(term,
 field)).skipTo(documentNr)

 returns the boolean indicating that.

Well, almost. When it returns true one still needs to check the TermDocs
for being at the documentNr.

Paul Elschot


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]