Re: Easy question ? docs with empty geodata field
Amit, Your guess was perfect and result is what expected: fq=-location_0_coordinate:[* TO *] to get docs with no geo data Thx, Jul -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4015067.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Easy question ? docs with empty geodata field
That'll probably work. Or with Solr 4's new spatial field types you can do a rectangle query of the whole world: geofieldname:[-90,-180 TO 90,180]. Perhaps it'd be nice to add explicit support for [* TO *]. - Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014938.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Easy question ? docs with empty geodata field
Thank you Amit, I let you know on monday when at office because I do not have access to solr from home... But I guess I missed to use dynamic field in right way, a long time I do not read my basics ;) -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014943.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Easy question ? docs with empty geodata field
Indeed, it would be nice we can use [* TO *] Then, is it possible to deal with the following on solr 3.6: geofieldname:[-90,-180 TO 90,180] -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014944.html Sent from the Solr - User mailing list archive at Nabble.com.
Easy question ? docs with empty geodata field
Hello, Looking to get all documents with empty geolocalisation field, I have not found any way to do it, with ['' to *], geodata being a specific field, do you have any solution ? Thanks, Jul -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Easy question ? docs with empty geodata field
sorry, I mean this field called geodata in my schema fieldType name=location class=solr.LatLonType subFieldSuffix=_coordinate/ field name=geodata type=location indexed=true stored=true/ -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014752.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Easy question ? docs with empty geodata field
Hello, Did you try q=-geodata:[* TO *] ? (Note the '-' (minus)) This reads as documents without any value for field named geodata. Also if you plan to use this intensively, you'd better declare a boolean field telling if geodata are set or not and set a value to each doc, because the -field_name:[* TO *] is an expansive query, especially on large data sets. Regards, -- Tanguy 2012/10/19 darul daru...@gmail.com sorry, I mean this field called geodata in my schema fieldType name=location class=solr.LatLonType subFieldSuffix=_coordinate/ field name=geodata type=location indexed=true stored=true/ -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014752.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Easy question ? docs with empty geodata field
What about querying on the dynamic lat/long field to see if there are documents that do not have the dynamic _latlon0 or whatever defined? On Fri, Oct 19, 2012 at 8:17 AM, darul daru...@gmail.com wrote: I have already tried but get a nice exception because of this field type : -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014763.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Easy question ? docs with empty geodata field
Your idea looks great but with this schema info : fieldType name=point class=solr.PointType dimension=2 subFieldSuffix=_d/ fieldType name=location class=solr.LatLonType subFieldSuffix=_coordinate/ fieldtype name=geohash class=solr.GeoHashField/ . field name=geodata type=location indexed=true stored=true/ dynamicField name=*_coordinate type=tdouble indexed=true stored=false / How can I use it ? fq=location_coordinate:[1 to *] not working by instance -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014779.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Easy question ? docs with empty geodata field
So here is my spec for lat/long (similar to yours except I explicitly define the sub-field names for clarity) fieldType name=latLon class=solr.LatLonType subFieldSuffix=_latLon/ field name=location type=latLon indexed=true stored=true/ !-- Could use dynamic fields here but prefer explicitly defining them so it's clear what's going on. The LatLonType looks to be a wrapper around these fields? -- field name=location_0_latLon type=tdouble indexed=true stored=true/ field name=location_1_latLon type=tdouble indexed=true stored=true/ So then the query would be location_0_latLon:[ * TO *]. Looking at your schema, my guess would be: location_0_coordinate:[* TO *] location_1_coordinate:[* TO *] Let me know if that helps Amit On Fri, Oct 19, 2012 at 9:37 AM, darul daru...@gmail.com wrote: Your idea looks great but with this schema info : fieldType name=point class=solr.PointType dimension=2 subFieldSuffix=_d/ fieldType name=location class=solr.LatLonType subFieldSuffix=_coordinate/ fieldtype name=geohash class=solr.GeoHashField/ . field name=geodata type=location indexed=true stored=true/ dynamicField name=*_coordinate type=tdouble indexed=true stored=false / How can I use it ? fq=location_coordinate:[1 to *] not working by instance -- View this message in context: http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014779.html Sent from the Solr - User mailing list archive at Nabble.com.