Thank you helix84,

I can not get your suggestion - where can I place this query?

And I am not sure have I explained clear my goal.
If there are:
- item A (dc.identifier 123)
- item B (dc.relation.isformatof 123)
- item C (dc.relation.isreferencedby 123)
- item D (dc.relation.isreferencedby 123)


I want to have a search filter "relation", which for the value "123" will 
select the items B, C, D

And I want to have a facet "relation" (or similar name), which looks in 
this case like this:

relation
  isformatof (1)     --for item B
  isreferencedby (2) --for items C, D

May be the filter can be something like this:

<bean id="searchFilterRelation" 
class="org.dspace.discovery.configuration.DiscoverySearchFilter">
  <property name="indexFieldName" value="relation"/>
  <property name="metadataFields">
    <list>
      <value>dc.relation.*</value>
    </list>
  </property>
</bean>

But I have no idea how to approach the facet.

Best regards
Evgeni


On Tuesday, December 20, 2016 at 6:23:04 PM UTC+2, helix84 wrote:
>
> The query you want is:
>
> (relation.isbasedon:[* TO *] OR relation.isformatof:[* TO *] OR
>  relation.isreferencedby:[* TO *]) AND your_identifier:123
>
> Then use faceting as usual.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
> On Tue, Dec 20, 2016 at 3:29 PM, Evgeni Dimitrov <dimitr...@gmail.com 
> <javascript:>> wrote:
>
>> I am wondering - is it possible to have a search like this:
>>
>> - to find all items, which have in any of
>> relation.isbasedon, relation.isformatof, relation.isreferencedby etc.
>>
>> certain value (the identifier of certain item);
>>
>> - then to have a facet "relation" with values
>> isbasedon (1)
>> isformatof (1)
>> isreferencedby (3)
>>
>> I mean - is it possible to have this without too much coding? I am using 
>> xmlui - Mirage.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to dspace-tech...@googlegroups.com <javascript:>.
>> To post to this group, send email to dspac...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to