[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [geomesa-users] Assistance with creating attribute indexes?
|
Aaron,
This is a great question. You are right about using the
SimpleFeatureTypes class; that is the easiest way. I checked the
quick-start tutorial, and found that we hadn't updated it to show using
secondary indexes, so I made that change this morning, and pushed it up.
The relevant lines to reference as a working example are here:
https://github.com/geomesa/geomesa-quickstart/blob/master/src/main/java/org/geomesa/QuickStart.java#L126-L136
I hope this helps. If not, or if you continue to encounter issues,
please just let me know.
Thanks!
Sincerely,
-- Chris
On Thu, 2015-04-23 at 06:02 +0000, Aaron Simmons wrote:
> What is the correct way to create a geomesa table with attribute
> indexes specified on one or more fields?
>
>
>
> I have found that using ***DataUtilities.createType( ... ) seems to
> ignore all of my ":index=true" e.g.
> Field1:String:index=true,Field2:String:index=false,Field3:String:index=true
>
>
> Then I figured out that using +++SimpleFeatureTypes.createType( ... )
> seemed to work better. But then my code for adding records ran into a
> bizarre run-time error: Feature '[name]' has not been initialized.
> Please call 'createSchema' first.
>
>
>
> ***DataUtilities => org.geotools.data.DataUtilities
>
>
> +++SimpleFeatureTypes => org.locationtech.geomesa.utils.geotools.SimpleFeatureTypes
>
>
>
> ..
>
>
>
> What is the proper way to create a new geomesa table, specifying one
> or more attributes [besides geotemporal] to be indexed? I am trying
> to take advantage of the *_attr_idx table, but it's not clicking for
> me.
>
>
>
> Thanks.
>
>
>
> -Aaron
>
>
>
> _______________________________________________
> geomesa-users mailing list
> geomesa-users@xxxxxxxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> http://www.locationtech.org/mailman/listinfo/geomesa-users