Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27034

Improve the 'ezobjectrelation' content type search UI, so that searches are made by content_id instead of location_id

    XMLWordPrintable

Details

    Description

      Use case:

      • There is a problem with search under content of type 'ezobjectrelation';
      • It is looking for location, not content;
      • Now, there is small problem with it, as "text" copy field that is used to search text on is only existent in content type solr documents (document_type_id=content);
      • So it looks like this is being solved by using the document structure (content is parent locations are children) and query similar to this one is used:
      q= {!lucene}{!child of='document_type_id:content' v='document_type_id:content AND (text:(John Smith))'}
      fq={!lucene}((document_type_id:"location") AND (meta_indexed_is_main_translation_b:"true") AND *:*)
      
      • Unfortunately, using `child` query parser stops solr from calculating the score making everything 0 and equally good resulting in mixed up results perceived by editors;
      • Maybe the simplest way is to change this to work like the main search and search for content, not for location.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: