You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2009/11/16 10:28:41 UTC

[jira] Created: (SOLR-1566) Allow components to add fields to documents

Allow components to add fields to documents
-------------------------------------------

                 Key: SOLR-1566
                 URL: https://issues.apache.org/jira/browse/SOLR-1566
             Project: Solr
          Issue Type: New Feature
          Components: search
            Reporter: Noble Paul
             Fix For: 1.5


Currently it is not possible to documents which are not in the the stored fields of the documents . This makes it cumbersome to add computed fields/metadata .


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


[jira] Commented: (SOLR-1566) Allow components to add fields to outgoing documents

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789914#action_12789914 ] 

Noble Paul commented on SOLR-1566:
----------------------------------

Yeah. SOLR-1298 and this are trying to achieve something in common. It is not possible for these 2 issues to have 2 different directions.  

> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to outgoing documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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


[jira] Updated: (SOLR-1566) Allow components to add fields to outgoing documents

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul updated SOLR-1566:
-----------------------------

    Description: 
Currently it is not possible for components to add fields to outgoing documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .


  was:
Currently it is not possible for components to add fields to documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .


        Summary: Allow components to add fields to outgoing documents  (was: Allow components to add fields to documents)

> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch, SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to outgoing documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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


[jira] Updated: (SOLR-1566) Allow components to add fields to outgoing documents

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul updated SOLR-1566:
-----------------------------

    Attachment: SOLR-1566.patch

> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to outgoing documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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


[jira] Updated: (SOLR-1566) Allow components to add fields to documents

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul updated SOLR-1566:
-----------------------------

    Description: 
Currently it is not possible for components to add fields to documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .


  was:
Currently it is not possible to documents which are not in the the stored fields of the documents . This makes it cumbersome to add computed fields/metadata .



> Allow components to add fields to documents
> -------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>
> Currently it is not possible for components to add fields to documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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


[jira] Updated: (SOLR-1566) Allow components to add fields to documents

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul updated SOLR-1566:
-----------------------------

    Attachment: SOLR-1566.patch

untested patch.  But
 I am happy with the changes I have made. If others think it is fine , I can add testcases and commit

> Allow components to add fields to documents
> -------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch, SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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


[jira] Issue Comment Edited: (SOLR-1566) Allow components to add fields to outgoing documents

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789914#action_12789914 ] 

Noble Paul edited comment on SOLR-1566 at 12/13/09 4:47 PM:
------------------------------------------------------------

Yeah. SOLR-1298 and this are trying to achieve something in common. It is not possible for these 2 issues to have 2 different directions.  

It is not enough to have just function results to be added as values. We should be able to add just about anything

      was (Author: noble.paul):
    Yeah. SOLR-1298 and this are trying to achieve something in common. It is not possible for these 2 issues to have 2 different directions.  
  
> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to outgoing documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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


[jira] Updated: (SOLR-1566) Allow components to add fields to outgoing documents

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul updated SOLR-1566:
-----------------------------

    Attachment: SOLR-1566.patch

> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to outgoing documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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


[jira] Updated: (SOLR-1566) Allow components to add fields to documents

Posted by "Noble Paul (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul updated SOLR-1566:
-----------------------------

    Attachment: SOLR-1566.patch

idea as a patch.

Any component must be able to add fields to the document. There are two ways to do it. Add the value directly or add a component (DocFieldSource) which will add the value just in time before the document is written out. The component can choose to add the values based on the other values or it can add some metadata to the document


There is a new class SolrDocumentSlice extends DocSlice . The requirement is that all responsewriters must use  SolrDocumentSlice#getSolrDocumentIterator() to write out documents.

I have not made the necessary changes to the response writers yet. I wish to get the feedback from others on the approach before going ahead further

> Allow components to add fields to documents
> -------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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


[jira] Commented: (SOLR-1566) Allow components to add fields to outgoing documents

Posted by "Grant Ingersoll (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789913#action_12789913 ] 

Grant Ingersoll commented on SOLR-1566:
---------------------------------------

I think we should try to coordinate w/ SOLR-1298 a bit and take a step back

> Allow components to add fields to outgoing documents
> ----------------------------------------------------
>
>                 Key: SOLR-1566
>                 URL: https://issues.apache.org/jira/browse/SOLR-1566
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Noble Paul
>             Fix For: 1.5
>
>         Attachments: SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch, SOLR-1566.patch
>
>
> Currently it is not possible for components to add fields to outgoing documents which are not in the the stored fields of the document.  This makes it cumbersome to add computed fields/metadata .

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