[ 
https://issues.apache.org/jira/browse/SOLR-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513817
 ] 

Thomas Peuss edited comment on SOLR-308 at 7/18/07 11:04 PM:
-------------------------------------------------------------

The use case is the following:
* We get catalog data from vendors (300+). We have no control about the data.
* The only unique thing is the catalogid, which is of course the same for all 
rows in one catalog.
* In our webapp we request first only a few fields that are needed for the 
search result display.
* When the customer clicks on a product in the search result he gets a detailed 
page. To get the info from Solr we need a unique id to read the rest of the 
fields (50+). This id is generated by this code.

Of course we could add the unique id in a preprocessing step but we wanted to 
achieve this with Solr alone.

The update procedure goes like this:
* Delete all documents with a specific catalogId
* Insert the updated catalog data

So you see we need this id to find the exact same document we have in the 
search result. We do nothing more with it.

Maybe I overlooked something and this can be achieved with existing code. Any 
hint is welcome.


 was:
The use case is the following:
* We get catalog data from vendors.
* The only unique thing is the catalogid, which is of course the same for all 
rows in one catalog.
* In our webapp we request first only a few fields that are needed for the 
search result display.
* When the customer clicks on a product in the search result he gets a detailed 
page. To get the info from Solr we need a unique id to read the rest of the 
fields (50+). This id is generated by this code.

So you see we need this id only for reference. We do nothing more with it.

Maybe I overlooked something and this can be achieved with existing code. Any 
hint is welcome.

> Add a field that generates an unique id when you have none in your data to 
> index
> --------------------------------------------------------------------------------
>
>                 Key: SOLR-308
>                 URL: https://issues.apache.org/jira/browse/SOLR-308
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Thomas Peuss
>            Priority: Minor
>         Attachments: GeneratedId.patch
>
>
> This patch adds a field that generates an unique id when you have no unique 
> id in your data you want to index.

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

Reply via email to