scholarslab / prism

Prism is a tool for collective interpretation. It's an ongoing experiment by the Praxis Program at the University of Virginia Scholars' Lab
http://prism.scholarslab.org/
Apache License 2.0
25 stars 15 forks source link

Document Lengths #326

Open walshbr opened 8 years ago

walshbr commented 8 years ago

Got a question from a user just now about max lengths for documents in prism. Any idea where this is set? I can't find anywhere in the code, but I know it's set somewhere. The question was tied into a followup question, which was "can the length of documents be changed?" My sense was yes, if we had someone ask for it. Thoughts?

walshbr commented 7 years ago

Looks like there is a character limit of 65525 imposed within the tag. That number comes inclusive of the tags. Not sure where that's coming from - might be a default limit on the database field? Found that number by comparing two different texts that were too long:

  1. view-source:http://prism.scholarslab.org/prisms/6e72a626-b898-11e6-ba71-005056b3784e/highlight?locale=en
  2. view-source:http://prism.scholarslab.org/prisms/c7f1921c-b897-11e6-ba71-005056b3784e/highlight?locale=en

The last tag as it exists in each example. Cut off mid-span creation:

  1. <span
  2. <span class