Hi Jim,
Thanks a ton for the useful comments.
I would like to clarify if my understanding is correct also. Here's what I'd do with your comments.
```java
// Define Feature Type
SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder();
b.setName("TestFeatureType");
b.add("loc", Geometry.class, 4326);
b.add("date", Date.class);
b.add("value", String.class);
b.setDefaultGeometry("loc");
SimpleFeatureType sft = b.buildFeatureType();
sft.getUserData().put("geomesa.mixed.geometries", "true");
dataStore.createSchema(sft); // Assume dataStore is loaded.
// Write a feature
FeatureWriter writer = dataStore.getFeatureWriterAppend("TestFeatureType");
// Adding a sensor value with geometry type "LineString"
SimpleFeature newFeature = writer.next();
newFeature.setAttribute("value", "TestValue1");
newFeature.setAttribute("date", SomeDate);
newFeature.setAttribute("loc", line); // line is given.
```
Is this correct? It returned correct results from the query, but a query for Points got significantly slowed. It's reasonable but do you have any numbers about how much performance will be degraded by using "Geometry" as a default index instead of "Point"?
By the way, I forgot to put below code in the previous email:
```java
// feat is an instance of SimpleFeature, not SimpleFeatureType
neaFeature.setDefaultGeometry("line_loc");
```
There is a method in SimpleFeature that sets default geometry type, so I was curious if it actually does set proper index per feature instance. My understanding of your comments is this is not working.
Thank you very much.