can anyone explain how to create facet and how to implement? i want to know how exactly facet is working?
On Thu, Jul 24, 2008 at 4:21 PM, Ashish Kumar <[EMAIL PROTECTED]> wrote: > Pointer to the following query will be highly appreciated > > I want to perform facet based search on duplicate element tag value based > on the attribute value. > > > > Suppose I have three documents in the content base. > > > > For e.g. I have the following elements > > Document one > > <SubjectGroup> > > <Subject Priority="one">Foo</Subject> > > <Subject Priority="two">Bar</Subject> > > </SubjectGroup> > > > > > > Document two > > <SubjectGroup> > > <Subject Priority="one">Foo</Subject> > > <Subject Priority="two">Bar</Subject> > > > > </SubjectGroup> > > > > > > Document three > > <SubjectGroup> > > <Subject Priority="one">Hello</Subject> > > <Subject Priority="two">Bar</Subject> > > </SubjectGroup> > > > > > > I define element range indexs on Subject and attribute Priority and now I > perform facet search. > > > > I need to get the results as below > > Foo count 2 > > Hello count 1 > > > > > > > > Where as I get the results given below > > > > <search:facet-def do-count="true"> > > <search:value-facet id="SG-facet-id"> > > <search:element-attr id="TYPE-facet-attr-id"> > > <search:namespace/> > > <search:local-name>Subject</search:local-name> > > <search:attr-local-name>Type</search:attr-local-name> > > </search:element-attr> > > </search:value-facet> > > </search:facet-def> > > <search:all count="7"/> > > <search:item value="One" count="3">One</search:item> > > <search:item value="Two" count="3">Two</search:item> > > </search:facet> > > > > or One count 3 > > Two count 3 > > > > > > How can get the results as below > > Foo count 2 > > Hello count 1 > > > > I mean how to place a check if attribute Priority has value "One" then > facet search on the value Subject tag (Foo or Hello) > > > > > > > > > > Regards, > > Ashish > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > > -- Regards, SATHISH KUMAR.A | Software Engineer GlobalLogic Inc. The Global Product Development Leader INDIA| USA | UKRAINE | CHINA mobile : +91 9818343480 office : +91 120-4342000 x 4563 www.globallogic.com InfoWorld Award Winner for Agile Innovation
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
