Hi all,  

I have a quick question about how complex fields (subFields etc) interact with 
indexing and storage.

Let's say I have this (partial) schema:

<fieldType name="location" class="solr.LatLonType" 
subFieldSuffix="_coordinate"/>
…
<field name="pnt" type="location" indexed="true" stored="true" required="true" 
/>
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false"/>


(slightly modified from the example/ project).

If my goals were to:

1) Always query the location by "lat,lng" (never the subfields directly)
2) Never need to pull out the 'pnt' value from results (I always just need the 
document's ID back, not its contents)
3) Not have any unnecessary indexes

Is there anything that I should change about the set-up above? Will the schema 
as it stands index both the two dynamic fields that get created, as well as the 
'pnt' field above them (in effect creating 3 indexes)? Or is the 
"indexed='true'" on the 'pnt' field just needed so it properly connects to the 
two indexes created for the dynamic fields?

Thanks in advance,
Mike

Reply via email to