[jira] Created: (SOLR-1942) Ability to select codec per field

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SOLR-1942) Ability to select codec per field

Hudson (Jira)
Ability to select codec per field
---------------------------------

                 Key: SOLR-1942
                 URL: https://issues.apache.org/jira/browse/SOLR-1942
             Project: Solr
          Issue Type: New Feature
    Affects Versions: 4.0
            Reporter: Yonik Seeley
             Fix For: 4.0


We should use PerFieldCodecWrapper to allow users to select the codec per-field.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-1942) Ability to select codec per field

Hudson (Jira)

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

Hoss Man commented on SOLR-1942:
--------------------------------

something to consider is wether we just want to make it configurable per field (ie: a codec="foo" attribute for the <field /> declarations) or if we want to use some general rules as well -- ie: the uniqueKeyField should probably default to the PulseCodec (or something similar) ... likewise i'm guessing there are probably some defaults that would make sense per field type.

> Ability to select codec per field
> ---------------------------------
>
>                 Key: SOLR-1942
>                 URL: https://issues.apache.org/jira/browse/SOLR-1942
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 4.0
>            Reporter: Yonik Seeley
>             Fix For: 4.0
>
>
> We should use PerFieldCodecWrapper to allow users to select the codec per-field.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1942) Ability to select codec per field

Hudson (Jira)
In reply to this post by Hudson (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer updated SOLR-1942:
----------------------------------

    Attachment: SOLR-1942.patch

I started working on this today and attach my current state. There are still some edges and there is a testcase (SpellCheckComponent) that is still failing though.

Anyway its good enough for the first round of feedback which  would be great since I am not a solr expert :)

thanks  

> Ability to select codec per field
> ---------------------------------
>
>                 Key: SOLR-1942
>                 URL: https://issues.apache.org/jira/browse/SOLR-1942
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 4.0
>            Reporter: Yonik Seeley
>             Fix For: 4.0
>
>         Attachments: SOLR-1942.patch
>
>
> We should use PerFieldCodecWrapper to allow users to select the codec per-field.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (SOLR-1942) Ability to select codec per field

Hudson (Jira)
In reply to this post by Hudson (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer reassigned SOLR-1942:
-------------------------------------

    Assignee: Simon Willnauer

> Ability to select codec per field
> ---------------------------------
>
>                 Key: SOLR-1942
>                 URL: https://issues.apache.org/jira/browse/SOLR-1942
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 4.0
>            Reporter: Yonik Seeley
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: SOLR-1942.patch
>
>
> We should use PerFieldCodecWrapper to allow users to select the codec per-field.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1942) Ability to select codec per field

Hudson (Jira)
In reply to this post by Hudson (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer updated SOLR-1942:
----------------------------------

    Attachment: SOLR-1942.patch

the previous patch got somehow corrupted

> Ability to select codec per field
> ---------------------------------
>
>                 Key: SOLR-1942
>                 URL: https://issues.apache.org/jira/browse/SOLR-1942
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 4.0
>            Reporter: Yonik Seeley
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: SOLR-1942.patch, SOLR-1942.patch
>
>
> We should use PerFieldCodecWrapper to allow users to select the codec per-field.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-1942) Ability to select codec per field

Hudson (Jira)
In reply to this post by Hudson (Jira)

     [ https://issues.apache.org/jira/browse/SOLR-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer updated SOLR-1942:
----------------------------------

    Attachment: SOLR-1942.patch

Updated the last version to support custom CodecProvider as well as custom Codecs via plugin. Currently this patch only supports specifying codecs for FieldTypes like this:
{code}
  <fieldType name="string_pulsing" class="solr.StrField" codec="Pulsing"/>
  <fieldType name="string_simpletext" class="solr.StrField" codec="SimpleText"/>
  <fieldType name="string_standard" class="solr.StrField" codec="Standard"/>
{code}

and in solrconfig.xml the provider and its codecs can be configured like this: (while the class argument on codecProvider is optional)

{code}
     ....
    </deletionPolicy>
    <codecProvider class="org.apache.solr.core.MockCodecProvider" defaultCodec="Pulsing">
    <codec class="org.apache.lucene.index.codecs.simpletext.SimpleTextCodec"/>
    <codec class="org.apache.lucene.index.codecs.preflex.PreFlexCodec"/>
  </codecProvider>
  </mainIndex>

   ....
{code}


> Ability to select codec per field
> ---------------------------------
>
>                 Key: SOLR-1942
>                 URL: https://issues.apache.org/jira/browse/SOLR-1942
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 4.0
>            Reporter: Yonik Seeley
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: SOLR-1942.patch, SOLR-1942.patch, SOLR-1942.patch
>
>
> We should use PerFieldCodecWrapper to allow users to select the codec per-field.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]