I like the idea of the wiki page; I think I will attempt to set one up after this email, but I wanted to see if I could do a little bit better job of fleshing out how pulling metadata out might work (in my mind):

Scenario 1:
------------------------------------------------------------------------ ---------------------------------------------------------------- We add suggestable metadata as part of the product schema, so we could have something like
<add>
        <doc>
                <field name='id">12345</field>
                <field name="author_first_letter" suggestable="1">Smith</field>
<field name="author" suggestable="1" preceding="author_first_letter">S</field>
                <field name="price_range" suggestable="1">0-25</field>
                <field name="price">14.23</field>
                <field name="name">Some Crazy Legal Book</field>
        </doc>
</add>

Once we reindex, we do a search for 'legal' again and our book is in it. Based on our index, we can scan the resultset and see that the results have three suggestable fields, two of which do not require a preceding field.

We return a list of the attributes and their distinct values for author_first_letter and price_range.

If author_first_letter is specified as S in the enxt step of the search, then we offer the author attribute and the distinct values of author where author_first_letter = S

If price_range 0-25 is selected, then we don't show price in the metatdata list, since it is not suggestable.

I don't think this would be really much more difficult than trying to extract attributes, and it gives people an easier time adiopting this project without shutting down the default functionaity that the TODO list suggests right now.

and now to start that wiki... Thoughts?

corey

Reply via email to