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