Elasticsearch - relations

Infos:

  • Used Zammad version: 6.3.1
  • Used Zammad installation type: source
  • Operating system: Ubuntu 22.04.4 LTS
  • Browser + version: google chrome 126.0.6478.127

Expected behavior:

  • elasticsearch returns data from related tables too

Actual behavior:

  • elasticsearch does’nt return data from related tables

Steps to reproduce the behavior:

    @ajax(
      id: 'asset_model_index'
      type: 'GET'
      url: "#{@apiPath}/asset_models/"
      processData: true
      success: (data) =>

    )

   @ajax(
        id: 'search'
        type: 'POST'
        url:  "#{@apiPath}/search/asset_model"
        data: JSON.stringify(query: @query, limit: 50)
        success: (data) =>

      )
     

Zrzut ekranu 2024-07-05 121206

This is correct behavior and due on how Zammad has to index data for a full fledged search result.

Oh ok, so what should i do because when i use searchbar the table shows manufacturer and category ids instead of their names

with the first ajax request it shows everything as it should

Is that a custom development?

yes i am creating my own package, but maybe you know what may be the solution for this problem