Hi Rukshan, If a STRING field is persisted and indexed as FACET, then that specific field can only contain a JSON arrays as its values. For example, If you persisted and Indexed "Add" ( I assume Add means "Address" ) then For simulating, you need to set the value as [ Country, province, city, region, street, Building No ]
On Sun, Aug 2, 2015 at 10:24 PM, Rukshan Premathunga <ruks...@wso2.com> wrote: > Hi Giahn, > > i sent ID: as 1 and name,add,type as String values. > > Thanks and Regards. > > On Sun, Aug 2, 2015 at 9:31 PM, Gihan Anuruddha <gi...@wso2.com> wrote: > >> Can you please share the sample values that you used in the simulator? >> >> >> On Sun, Aug 2, 2015 at 9:19 PM, Rukshan Premathunga <ruks...@wso2.com> >> wrote: >> >>> Hi Gihan, >>> >>> I sent the data using event simulator, not the actual event stream. >>> i used the >>> https://localhost:9443/carbon/eventsimulator/index.jsp?streamId= >>> facet_test:1.0.0 UI to simulate. >>> >>> Thanks and Regards. >>> >>> On Sun, Aug 2, 2015 at 9:16 PM, Gihan Anuruddha <gi...@wso2.com> wrote: >>> >>>> You need to send those values as a json array. Above is the stream >>>> definition. Can you attach sample data event? >>>> >>>> On Sun, Aug 2, 2015 at 9:13 PM, Rukshan Premathunga <ruks...@wso2.com> >>>> wrote: >>>> >>>>> Hi Niranda, >>>>> >>>>> >>>>> - here the stream definition: >>>>> >>>>> >>>>> { >>>>> >>>>> "streamId": "facet_test:1.0.0", >>>>> >>>>> "name": "facet_test", >>>>> >>>>> "version": "1.0.0", >>>>> >>>>> "nickName": "", >>>>> >>>>> "description": "", >>>>> >>>>> "metaData": [], >>>>> >>>>> "correlationData": [], >>>>> >>>>> "payloadData": [ >>>>> >>>>> { >>>>> >>>>> "name": "id", >>>>> >>>>> "type": "INT" >>>>> >>>>> }, >>>>> >>>>> { >>>>> >>>>> "name": "name", >>>>> >>>>> "type": "STRING" >>>>> >>>>> }, >>>>> >>>>> { >>>>> >>>>> "name": "add", >>>>> >>>>> "type": "STRING" >>>>> >>>>> }, >>>>> >>>>> { >>>>> >>>>> "name": "type", >>>>> >>>>> "type": "STRING" >>>>> >>>>> } >>>>> >>>>> ] >>>>> >>>>> } >>>>> >>>>> >>>>> >>>>> - `name`, `add` and `type` attributes are set to facet and indexed >>>>> when persistent them. >>>>> >>>>> >>>>> Thanks and Regards. >>>>> >>>>> >>>>> >>>>> On Sun, Aug 2, 2015 at 9:08 PM, Niranda Perera <nira...@wso2.com> >>>>> wrote: >>>>> >>>>>> Can you attach a sample event you sent? >>>>>> >>>>>> On Sun, Aug 2, 2015, 21:07 Rukshan Premathunga <ruks...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> Hi all, >>>>>>> >>>>>>> i try to simulate event stream which contain facet attribute. even >>>>>>> though i successfully send sample data through UI simulator, in message >>>>>>> console i couldn't see any data. >>>>>>> >>>>>>> did anyone encounter this? >>>>>>> >>>>>>> Thanks and Regards. >>>>>>> >>>>>>> -- >>>>>>> Rukshan Chathuranga. >>>>>>> Software Engineer. >>>>>>> WSO2, Inc. >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Rukshan Chathuranga. >>>>> Software Engineer. >>>>> WSO2, Inc. >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> W.G. Gihan Anuruddha >>>> Senior Software Engineer | WSO2, Inc. >>>> M: +94772272595 >>>> >>> >>> >>> >>> -- >>> Rukshan Chathuranga. >>> Software Engineer. >>> WSO2, Inc. >>> >> >> >> >> -- >> W.G. Gihan Anuruddha >> Senior Software Engineer | WSO2, Inc. >> M: +94772272595 >> > > > > -- > Rukshan Chathuranga. > Software Engineer. > WSO2, Inc. > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Gimantha Bandara Software Engineer WSO2. Inc : http://wso2.com Mobile : +94714961919
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev