In my indexes where the available fields vary by document, I maintain an additional field that lists out what fields are in used per document. That way, I can query for all documents that contain field "foo", or all documents that contain a field "foo", and don't contain "bar"... etc.




Avi Drissman wrote:

Suppose I have an index with a varying number of fields in a document. Some documents have some fields, and some documents have others. Is there a quick way to query the index to see if a particular field name is in use at all by any document in the index?

For example, if document 1 has fields (A, B, C), document 2 fields (B, C, D), document 3 fields (A, E, F), then document 2 is deleted, I need to be able to answer, "Does any document have field 'D'" with "no".

Thanks.

Avi


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

Reply via email to