[GrandComicsDatabase/gcd-django] Bug 794: check keyword length (#228)

5 views
Skip to first unread message

TRNaus

unread,
Oct 30, 2016, 7:13:08 PM10/30/16
to GrandComicsDatabase/gcd-django

Originally Opened: 2013-03-11 12:59 PST

Current GCD software only processes and stores the first 100 characters of the Keyword field. The Keyword data entry fields allows for a much larger character count, so any data beyond the first 100 characters will be lost once an editor approves the keywords.

The Keyword character field length should be identical to the number of characters that the GCD Keyword software will process. That value is currently set at 100 characters.

In the meantime, editors must keep an eye on the keyword character field sizes and inform indexers when they enter more than 100 characters.

------- Comment #1 From Alexandros Diamantidis 2013-03-11 17:48:55 PST -------
Just a clarification: The 100 character limit applies to each individual keyword - the number of keywords in the field is unlimited. So, if you have for example...

a very long keyword that exceeds 100 chars; another keyword; more keywords
... only the first one will be truncated - the others will be stored correctly.

I think 100 characters is a generous limit for keywords and unlikely to be reached in practice, but the site could still warn you as you may exceed it by mistake (eg. by separating keywords by spaces instead of semicolons).

------- Comment #2 From Jochen G. 2013-03-11 20:03:40 PST -------
As Alexandros said, we cannot limit the field size, but could check the length of each keyword. But then a word of more than 100 characters is a very odd keyword.

------- Comment #3 From Lionel English 2013-03-14 00:18:33 PST -------
Please note that the name 'keyword' is a misnomer. IIRC, the package we're using to implement this implements the idea of tagging, as it's known on most other sites that use it. The difference is that, because spaces are NOT delimiters, 'keywords' can actually be short phrases. The 100-character limit does not apply to the field as a whole. Nor, I suspect, does it apply to individual words. I believe it probably applies to strings separated by delimiters. So "elections; fictious united states presidential candidates; fictitious american political parties; fictitious american presidents" breaks down into four 'keywords', the second of which is 46 characters and the third of which is 37.

A 100-character word is unlikely in the extreme, but a 100-character phrase could be an issue. Still unlikely, but a more realistic concern.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

JochenGCD

unread,
Aug 30, 2025, 9:02:22 AMAug 30
to GrandComicsDatabase/gcd-django, Subscribed

Closed #228 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <GrandComicsDatabase/gcd-django/issue/228/issue_event/19423802366@github.com>

Reply all
Reply to author
Forward
0 new messages