Thanks for the clarification! On Aug 19, 2015 3:05 PM, "david.w.smi...@gmail.com" < david.w.smi...@gmail.com> wrote:
> Hi Jamie, > > Your understanding is inverted. The predicates can be read as: > <indexed shape> <predicate> <query shape>. > > For indexed point data, there is almost no semantic different between the > Within and Intersects predicates. There is if the field is multi-valued > and you want to ensure that all of the points for a document are within the > query shape (Within predicate) versus any of them being okay (Intersects > predicate). Intersects is pretty fast. > > The Contains predicate only makes sense for non-point indexed data. > > ~ David > > On Wed, Aug 12, 2015 at 6:02 PM Jamie Johnson <jej2...@gmail.com> wrote: > > > Can someone clarify the difference between isWithin and Contains in > regards > > to Solr's spatial support? From > > https://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4 I see that if > > you are using point data you should use Intersects, but it is not clear > > when to use isWithin and contains. My guess is that you use isWithin > when > > you want to know if the query shape is within the shape that is indexed > and > > you use contains to know if the query shape contains the indexed shape. > Is > > that right? > > > -- > Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker > LinkedIn: http://linkedin.com/in/davidwsmiley | Book: > http://www.solrenterprisesearchserver.com >