Hello,

@Ben : Thanks for this help, setting schema-joining to false, allow me to
retrieve the first features from solR using app-schema plugin and a
lightweight mapping : keeping <attributeMappings>element empty, so the solr
Index was (automatically?) mapped to gml_id in my case:
<wfs:member><erl:MineralOccurrenceView gml:id="m-301"/></wfs:member>

but now, I would like to map the fields.
first, using the select request sent by solr module, I retreived the
response : 

<response>
        <result name="response" numFound="1" start="0">
                <doc>
                        <str name="entity_type">data</str>
                        <arr name="sm_field_status">
                                <str>historic</str>
                        </arr>
                        <arr name="spell">
                                <str>historic</str>
                                <str>MI2</str>
                                <str>FR</str>
                                <str>Fance</str>
                                <str>985</str>
                                <str>Ag</str>
                        </arr>
                        <arr name="wkt_field_geometry">
                                <str>POINT(3.463333 0.901389)</str>
                        </arr>
                        <str name="bundle_name">mine</str>
                        <str name="id">m-301</str>
                        <str name="label">MI2</str>
                        <arr name="sm_field_country_code">
                                <str>FR</str>
                        </arr>
                        <str name="bundle">data</str>
                        <arr name="sm_field_country_name">
                                <str>France</str>
                        </arr>
                        <arr name="sm_field_miname">
                                <str>985</str>
                                <str>Ag</str>
                        </arr>
                        <long name="_version_">1560122451930644480</long>
                        <date name="timestamp">2017-02-23T11:18:32.855Z</date>
                </doc>
        </result>
        <str name="nextCursorMark">AoElbS0zMDE=</str>
</response>

using OCQL, with different values raised an exception : 

java.lang.RuntimeException: Error applying mapping with targetAttribute
gml:name
Caused by: java.lang.IllegalArgumentException: Could not find working
property accessor for attribute (label) in object
(SimpleFeatureImpl:m4eu=[])
        at
org.geotools.filter.AttributeExpressionImpl.evaluate(AttributeExpressionImpl.java:229)

But, maybe, my ocql value is wrong, as  it's not the xml element to use, but
the xmlattribute

As the response is XML, I also tried to use data integration access, and
setup inputAttribute with xpath.
All values tested (str[@name='label'],...) return empty value without
exception.

Trying to use ALL log level, doesn't show anything helpful to me.

2017-07-03 13:48:02,525 TRACE [complex.filter] - ENTRY
FeatureImpl:MineralOccurrenceView<MineralOccurrenceViewType
id=m4eu.m-301>=[] gml:name null null null
2017-07-03 13:48:02,528 DEBUG [geotools.xml] - AbstractFeature is abstract


What should I use to map theses fields ?

Thanks
Kind regards,
Adrien.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Application-schema-plugin-and-filter-encoding-performance-concern-tp5325806p5326505.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to