lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1566) Allow components to add fields to outgoing documents
Date Fri, 20 Aug 2010 17:39:16 GMT

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

Ryan McKinley updated SOLR-1566:
--------------------------------

    Attachment: SOLR-1566-rm.patch

attaching some stuff that really does not work, but at least sketches a direction till it
hit the 'how do we actually write the fields' road block...

posting here just for reference.

This takes the approach of adding an 'augmenter' calss:
{code:java}
public abstract class DocAugmenter 
{
	/**
	 * Call this before you start writing out fields
	 * @param rsp 
	 * @param req 
	 * 
	 * @return true if it has any fields to augment
	 */
	public abstract boolean setup(SolrQueryRequest req);
	
	/**
	 * Make sure 'setup' has been called first!
	 */
	public abstract void augment( int docId, Document doc );
}
{code}


the 'setup' call give the augmeter a chance to bulk load all the values if that is what it
wants to do.  perhaps we would want a shutdown also

> 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
>            Assignee: Grant Ingersoll
>             Fix For: Next
>
>         Attachments: SOLR-1566-gsi.patch, SOLR-1566-rm.patch, 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message