Hey Joerg,
I just need the whole content of the _source field like so:
[
{
"HotelName": "Plaka",
"ProductCode": "7050",
"objectId": "437-de",
"GroupId": 25223,
"readonly": false,
"lang": "de",
"City": "Athens"
},
{
"HotelName": "Hyatt at Fisherman's Wharf",
"ProductCode": "52397",
"objectId": "14479-de",
"GroupId": 25223,
"readonly": false,
"lang": "de",
"City": "San Francisco"
}
]
Those fields are not stored, but indexed. As I mentioned before, this
source matches exactly to an entity structure in our application and we
need the structure of the source document 1:1. If this is achievable by any
other methods than a plugin, then I am totally fine with it.
Am Donnerstag, 5. Juni 2014 21:36:31 UTC+2 schrieb Jörg Prante:
>
> Just a quick question, do you just want to extract a field from the json
> source?
>
> There are field filters and parameters for shaping such a JSON result,
> maybe they can already help?
>
> Or can you give an example of the problem?
>
> Jörg
>
>
>
> On Thu, Jun 5, 2014 at 7:45 PM, Mario Mueller <[email protected]
> <javascript:>> wrote:
>
>> Hey folks,
>>
>> I kindly ask for a hint to achieve the following thing:
>>
>> The goal is to deliver only a json array of source objects to the client.
>> The php app that sits on the other side uses JMS\Serializer to deserialize
>> the response into entities. At the moment the app needs to take an overhead
>> to derserialize it, extract the source and serialize it again. Then the
>> serialized stuff is passed to the entity deserializer. That's really
>> painful.
>>
>> I've found a thread that suggests a proxy in between to handle this type
>> of problem, but this is not possible in our env.
>>
>> The real question is: Is this achievable by writing a plugin? And if so,
>> what type of plugin? I've looked at the RestFilter, but I don't know if
>> this is the right way to go...
>>
>> Any hints are welcome!
>>
>> Regards,
>> Mario
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "elasticsearch" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/6844c290-e7f8-46d7-b5b3-27cab18fb706%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/elasticsearch/6844c290-e7f8-46d7-b5b3-27cab18fb706%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b9a6e43f-35ec-4275-9a29-417552e1d94f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.