Tagging in solr

View: New views
3 Messages — Rating Filter:   Alert me  

Tagging in solr

by Spas Poptchev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,
 
what i want to do is to store tags that belong to products. Each tag should also store information about how often it was used with a certain product.
So for example:
 
product1
cool 5        => product1 was tagged 5 times with cool
 
What would be the best way to implement this kind of stuff in solr?
 
Btw. its a huge database with over 500000 products.
 
cheers,
Spas
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

Re: Tagging in solr

by Thorsten Scherler-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2007-10-19 at 11:01 +0100, Spas Poptchev wrote:
> Hi,
>  
> what i want to do is to store tags that belong to products. Each tag should also store information about how often it was used with a certain product.
> So for example:
>  
> product1
> cool 5        => product1 was tagged 5 times with cool
>  
> What would be the best way to implement this kind of stuff in solr?

There is a wiki page on some brainstorming on how to implement  
tagging within Solr: <http://wiki.apache.org/solr/UserTagDesign>

It's easy enough to have a tag_keywords field, but updating a single  
tag_keywords field is not so straightforward without sending the  
entire document to Solr every time it is tagged.  See SOLR-139's  
extensive comments and patches to see what you're getting into.

salu2
--
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


RE: Tagging in solr

by Spas Poptchev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


thanks for your help thorsten.

I have a general idea how the schema file (for the UserTagDesign) should look like but its the first time im working with solr, so im not so familiar with the subtleties of solr. If you could give me an example how the schema should be implemented (especially the analyzers for the utag and utag2) i would really appreciate it.

Is it possible to have these kind of tags in a catch-all field and is there any chance not to involve the user (just saving how many times this tag was used on a product)?

cheers,
Spas

----------------------------------------> Subject: Re: Tagging in solr> From: thorsten.scherler.ext@...> To: solr-user@...> Date: Fri, 19 Oct 2007 12:47:18 +0200>> On Fri, 2007-10-19 at 11:01 +0100, Spas Poptchev wrote:>> Hi,>>>> what i want to do is to store tags that belong to products. Each tag should also store information about how often it was used with a certain product.>> So for example:>>>> product1>> cool 5 => product1 was tagged 5 times with cool>>>> What would be the best way to implement this kind of stuff in solr?>> There is a wiki page on some brainstorming on how to implement> tagging within Solr: >> It's easy enough to have a tag_keywords field, but updating a single> tag_keywords field is not so straightforward without sending the> entire document to Solr every time it is tagged. See SOLR-139's> extensive comments and patches to see what you're getting into.>> salu2> --> Thorsten Scherler thorsten.at.apache.org> Open Source Java consulting, training and solutions>

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx