iskradelta / x9-places

Automatically exported from code.google.com/p/x9-places
0 stars 0 forks source link

Tag Handling #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
How will we implement tags? It seems to be quite difficult, and there are
few discussions about it online.

Here's how we probably should do it:
http://wiki.apache.org/solr/UserTagDesign

Does anyone understand that? (If you do, implement it :))

Perhaps some more info:
http://www.mail-archive.com/solr-user@lucene.apache.org/msg05807.html

Original issue reported on code.google.com by tgwizard on 15 Apr 2010 at 12:43

GoogleCodeExporter commented 9 years ago
We are going to do this by storing the tags as separate documents in Solr. So, 
each
user will have a "Tag Document" for each venue she tags, containing fields such 
as:

taggedObjID, user/id, tags

Searching by tags will then contstruct queries to take these tag documents into 
account.

Original comment by tgwizard on 16 Apr 2010 at 9:33

GoogleCodeExporter commented 9 years ago
Rémi and Quentin is doing this

Original comment by tgwizard on 16 Apr 2010 at 9:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ehm, I saw somewhere that you said we should decide whether the IDs are Strings 
or
integers, I think that it is easier to implement them as strings in solr.

Original comment by tgwizard on 21 Apr 2010 at 11:10

GoogleCodeExporter commented 9 years ago
We decided today that we wouldn't care about the special cases of simultaneous
updates, just getting an implementation that works. After all, this is a 
prototype.

Original comment by tgwizard on 23 Apr 2010 at 9:48

GoogleCodeExporter commented 9 years ago
I have modified a bit VenueModel to includes tags. If no tag is input, that's 
fine.
You can test it at http://localhost:8080/foodle-x9/tag/tagmodel_test.jsp and 
check in
Solr if it works.
Don't forget to copy schema.xml to solr/conf
I am using tag.EditController servlet to add the venue with the tags.

However, if we use it this way, I don't think that TagModel will be so useful. 
We can
use its static methods to retrieve the venues corresponding to the tag, or the 
tags
for a venue.

Original comment by remi.t...@gmail.com on 28 Apr 2010 at 4:49