<div dir="ltr"><div>Hi Flavio!</div><div><br></div><div>I'm looking into this. We do not have a `eq-str` operator, there is likely an error in the Javacript console and the operation isn't finishing. That's why you're seeing the "spinner" that never stops.</div><div><br></div><div>Testing against the demo, I am able to query using `eq` as the operator without any exceptions.<br></div><div><br></div><div>`eq` should be the correct operator. Can you use the `eq` operator and post the contents of the request body? If that looks normal then we may need to look at what's in the Mapfile.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 30, 2022 at 3:26 AM flavio rigolon <<a href="mailto:flavio.rigolon@gmail.com">flavio.rigolon@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
 I' ve tried to edit the app.js file and setting the comparitor value<br>
to 'eq-str' (my data fields in PostGIS are varchar type):<br>
<br>
--------------------------------------------------------------------------<br>
    app.registerService('search-particella', SearchService, {<br>
<br>
        fields: [<br>
            {type: 'text', label: 'Foglio', name: 'foglio_id'},<br>
            {type: 'text', label: 'Mappale', name: 'mappale'}<br>
        ],<br>
prepareFields: function (fields) {<br>
    // reformat the fields for the query engine,<br>
    //  "*stuff*" will do a case-ignored "contains" query.<br>
    var query = ['and'];<br>
    for(var i = 0, ii = fields.length; i < ii; i++) {<br>
        if(fields[i].value !== '' && fields[i].value !== undefined) {<br>
            query.push({<br>
                comparitor: 'eq-str',<br>
                name: fields[i].name,<br>
                value: fields[i].value<br>
            });<br>
        }<br>
    }<br>
    return [query];<br>
},<br>
searchLayers: ['particella-wfs/particella_patrimonio']<br>
    });<br>
--------------------------------------------------------------------------<br>
<br>
but it doesn't work: in Geomoose the rounded arrows keep turning<br>
without any resuts.<br>
If I set compartor: 'eq' the system rightly says that my fields are not integer.<br>
If I set compartor: 'ilike' all is working fine but I rightly obtain<br>
all the features containing the terms I inserted in the search fields.<br>
<br>
Am I using the right operator or am I missing something important?<br>
Thanks in advance for any help<br>
<br>
flavio<br>
<br>
Il giorno lun 28 nov 2022 alle ore 14:20 flavio rigolon<br>
<<a href="mailto:flavio.rigolon@gmail.com" target="_blank">flavio.rigolon@gmail.com</a>> ha scritto:<br>
><br>
> Hi all,<br>
>  I'm using Geomoose 3.6.2. I'd like to perform an "exact" search on a<br>
> certain layer. For example: I have a parcel layer (italian cadastre)<br>
> in which every feature is identified by two fields: "foglio" and<br>
> "mappale". At this moment if I perform (i.e.) a search for "foglio"<br>
> number 3 and "mappale" number 5, I obtain:<br>
><br>
> - foglio 3 - mappale 5<br>
> - foglio 3 - mappale 15<br>
> - foglio 13 - mappale 5<br>
> - foglio 23 - mappale 15<br>
> - ......<br>
> - foglio 23 - mappale 25<br>
> - ...and so on<br>
><br>
> identifying every feature containing number 3 in "foglio" and number 5<br>
> in "mappale" fields (in many cases I obtain a long list which may<br>
> create confusion).<br>
> Is there a way to exactly identify the searched feature, in this case<br>
> "foglio 23 - mappale 5" only?<br>
> I hope it is clear.<br>
><br>
> Thanks in advance for any suggestions!<br>
> flavio<br>
><br>
> --<br>
> /"\  ASCII Ribbon Campaign<br>
> \ /  Respect for low technology.<br>
>  X  Keep e-mail messages readable by any computer system.<br>
> / \  Keep it ASCII.<br>
<br>
<br>
<br>
-- <br>
/"\  ASCII Ribbon Campaign<br>
\ /  Respect for low technology.<br>
 X  Keep e-mail messages readable by any computer system.<br>
/ \  Keep it ASCII.<br>
_______________________________________________<br>
GeoMoose-users mailing list<br>
<a href="mailto:GeoMoose-users@lists.osgeo.org" target="_blank">GeoMoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
</blockquote></div>