tagging

Grails: Many-to-Many without hasMany/belongsTo - instead using native 3NF - Searching full text

南楼画角 提交于 2019-12-04 15:13:55
I am implementing a many-to-many mapping in grails using 3NF, Not using the hasMany or belongsTo property. Taken from this article it shows and explains quite a lot about its advantages. Article: http://burtbeckwith.com/blog/?p=169 Presentation notes: http://burtbeckwith.com/blog/files/169/gorm%20grails%20meetup%20presentation.pdf I'm trying to make a Tag system onto questions, kind of like this(stackoverflow :)) I can save the Question and the Tags, then save the association with them, but now I want to be able to search and serve up a full Question with Tags, I have 3 domain classes -

MySQL Limit with Many to Many Relationship

只谈情不闲聊 提交于 2019-12-04 10:08:22
问题 Given a SCHEMA for implementing tags ITEM ItemId, ItemContent TAG TagId, TagName ITEM_TAG ItemId, TagId What is the best way to limit the number of ITEMS to return when selecting with tags? SELECT i.ItemContent, t.TagName FROM item i INNER JOIN ItemTag it ON i.id = it.ItemId INNER JOIN tag t ON t.id = it.TagId is of course the easiest way to get them all back, but using a limit clause breaks down, because you get an duplicate of all the items for each tag, which counts toward the number of

Unsupervised automatic tagging algorithms?

﹥>﹥吖頭↗ 提交于 2019-12-04 07:27:31
问题 I want to build a web application that lets users upload documents , videos , images , music , and then give them an ability to search them. Think of it as Dropbox + Semantic Search. When user uploads a new file, e.g. Document1.docx , how could I automatically generate tags based on the content of the file? In other words no user input is needed to determine what the file is about. If suppose that Document1.docx is a research paper on data mining, then when user searches for data mining , or

What benefit does Django-Taggit provide over a simple ManyToManyField() implementation of tagging?

不想你离开。 提交于 2019-12-04 06:58:26
The API according to the documentation seems achievable with a simple ManyToManyField...what am I missing? Sample from Django-Taggit documentation: class Food(models.Model): # ... fields here tags = TaggableManager() Then you can use the API like so:: >>> apple = Food.objects.create(name="apple") >>> apple.tags.add("red", "green", "delicious") >>> apple.tags.all() [<Tag: red>, <Tag: green>, <Tag: delicious>] >>> apple.tags.remove("green") >>> apple.tags.all() [<Tag: red>, <Tag: delicious>] >>> Food.objects.filter(tags__name__in=["red"]) [<Food: apple>, <Food: cherry>] The real advantage is not

How to customise the tag format of the Maven release plugin?

南楼画角 提交于 2019-12-04 00:44:47
In our SVN repo, we store tags like this: trunk project_a project_b branches project_a branch_x branch_y project_b tags project_a 1.0 1.1 project_b 1.0 When I run the Maven release plugin's " prepare " goal on project A, by default it creates the tag as "tags/project_a-x.x", which does not match my tag naming scheme above. I am thus depending upon whoever does the release (i.e. a fallible human) to spot this and change the tag to "tags/project_a/x.x". How can I tell the release plugin to use the correct format by default? The "prepare" goal has a " tag " configuration option that claims to do

Delphi: How to tag photos the way facebook does

混江龙づ霸主 提交于 2019-12-03 21:53:37
I need a way to tag photos in a Delphi desktop application the way Facebook does it. That includes some way to easily add the tags over the people, and then hovering the mouse over the person in the photo to show the tag. The two suggestions in the answer given to: " Delphi Components for Face Identification and Tagging " don't solve this. But I have no idea where to start, and have been unable to find ideas on the web on how to do this. How does Facebook do it? Or maybe there's a component for Delphi that will allow it. What would be the best way to try to implement Facebook-like tagging? p.s

Unable to use Tagging and excluding Filters

北战南征 提交于 2019-12-03 21:46:07
I have 2 Facets color and shape. Color: Red Green yellow Shape: Circle Square Now I want to use Tagging and excluding Filters for both these Facet. So if I select "Red" the green and yellow should be present in facet list and all shapes as well I read: http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters But unable to implement it in my setup. This worked fine for me. select?q={!tag=dt1}color:red&fq={!tag=dt2}shape:*&facet=true&facet.field={!ex=dt1}color&facet.field={!ex=dt2}shape Try http://localhost:8983/solr/collection1/select?q={!tag=dt1}color:red&fq={!tag=dt2

asp.net mvc - implementing an “autocomplete” tags selection for a blog?

蹲街弑〆低调 提交于 2019-12-03 16:46:55
I'm working on a blog system for my own use, and would like to implement an auto-complete tags selection (similar to stackoverflow), how would I implement something like this? Any example or links to a tutorial would be greatly appreciated. Thanks. Josh See my question here Jquery, Autocomplete using json, id's vs display values We actually "borrowed" (read copy and pasted) SO's autocomplete javascript and then tweaked it slightly - such as renaming it so it won't interfere with jquery ui's autocomplet e. The two are actually very similar, but we wanted specifically to have a tag system like

Stack Overflow style tagging system in jquery

橙三吉。 提交于 2019-12-03 13:54:49
问题 I am wondering if there is a prebuilt clone (or very similar) to the Stack Overflow tagging system. I have done some Googling however cannot find any powered by jquery. 回答1: Here is my implementation (which I think is much more true to the SO style than is the accepted answer). The style may need tweaking but it's functionally the same as you see on SO. Features: Takes a predefined input field with words separated by commas -- perfect for all cases such as those in which you are editing an

What is the easiest way to replicate the tags textbox that is used in the stackoverflow questions page

混江龙づ霸主 提交于 2019-12-03 13:04:02
问题 i am building a asp.net-mvc website and i want to support tagging on each page. I want to exactly replicate the inteface and UI that is used on stackoverflow (include both behavior and layout, css). What is the easiest way to leverage this. is there some jquery plugin that is used for something like this or is it homegrown? 回答1: This jQuery plugin seems pretty close: http://code.drewwilson.com/entry/autosuggest-jquery-plugin Update link : https://github.com/drewwilson/AutoSuggest 来源: https:/