Any update on this?? Please let me know?

On Thu, Jan 8, 2009 at 3:34 PM, Kalidoss MM <mm.kalid...@gmail.com> wrote:

> Hi,
>
> We are trying to implement an auto-suggest feature in our application that
> uses Solr as the core engine for search.
>
> The XML is structured as follows:
>
> <Media>
> <Id>QLrKnirLDEo9DThnL2h</Id>
> <Title></Title>
> <Description>Description</Description>
> <Categories>
>     <Category>Cat1</Category>
>     <Category>Cat2</Category>
> </Categories>
> <Tags>
>     <Tag>Kalidoss</Tag>
>     <Tag>Kaling</Tag>
>     <Tag>Soundoss</Tag>
> </Tags>
> </Media>
>
> We transform the same in solr understandable format like:
>
> <field name"Tag">Picture of the Day</field>  (which is multivalue=true)
> ...
>
> Now, we want to give an auto-suggest feature on fields like Tag & Category.
>
> In other words, when we search like:
> http://localhost:8983/solr/select/?q=(Tag:kali*)&fl=Tag,Id<http://localhost:8983/solr/select/?q=%28Tag:kali*%29&fl=Tag,Id>
>
> We expect it to return:
>
>        <doc>
>            <str name="Id">10001</str>
>            <arr name="Tag">
>                <str>Kalidoss</str>
>                <str>Kaling</str>
>            </arr>
>        </doc>
>
>
> But it returns strings that do not match also like the following:
>
>        <doc>
>            <str name="Id">10001</str>
>            <arr name="Tag">
>                <str>Kalidoss</str>
>                <str>Kaling</str>
>                <str>soundoss</str>
>            </arr>
>        </doc>
>
>
> I believe the reason is because, Solr returns the document with all of the
> "Tag" field's content.
>
> Now, the question is: Is there a way to make it return only Tag that match
> the criteria from the same document?
>
> -Doss.M,

Reply via email to