lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1131) Allow a single field type to index multiple fields
Date Wed, 09 Dec 2009 16:09:18 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788138#action_12788138
] 

Yonik Seeley commented on SOLR-1131:
------------------------------------

bq. poly fields feel like a hybrid between regular fields and dynamic fields and thus fit
at the same level they do.

The schema needs to know about dynamic fields because it affects field names.

Actually, I think I just saw why you currently need *some* support in IndexSchema with the
current way you are doing things:
If you have a dynamicField _pt, then I think you use field names like home_pt__0 and home_pt__1?
So in essence, it's a new type of dynamic field?  This seems like it might be hard to actually
get right in all of the corner cases.

What if, instead, dynamic fields are directly used for subfields?
So for a field name "home" instead of home__0 and home__1, you would use  home__0_d, home__1_d
Not as short, but it avoids having to add new capabilities to the IndexSchema.

Another alternative: use a prefix for subfields and the suffix for the type. _0_home_d,  _1_home_d

Another thing to keep in mind - not all subfields will always be of the same type.

> Allow a single field type to index multiple fields
> --------------------------------------------------
>
>                 Key: SOLR-1131
>                 URL: https://issues.apache.org/jira/browse/SOLR-1131
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Ryan McKinley
>            Assignee: Grant Ingersoll
>             Fix For: 1.5
>
>         Attachments: SOLR-1131-IndexMultipleFields.patch, SOLR-1131.patch, SOLR-1131.patch,
SOLR-1131.patch, SOLR-1131.patch, SOLR-1131.patch
>
>
> In a few special cases, it makes sense for a single "field" (the concept) to be indexed
as a set of Fields (lucene Field).  Consider SOLR-773.  The concept "point" may be best indexed
in a variety of ways:
>  * geohash (sincle lucene field)
>  * lat field, lon field (two double fields)
>  * cartesian tiers (a series of fields with tokens to say if it exists within that region)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message