For API searches does the size value for srprop refer to the size of the snippet value or something else?
If it isn't for the snippet value is there any way to predict the snippet length?
--tomasz
2010/2/25 Tomasz Finc tfinc@wikimedia.org:
For API searches does the size value for srprop refer to the size of the snippet value or something else?
It's the wikitext length of the entire page.
If it isn't for the snippet value is there any way to predict the snippet length?
Not from the API per se, although it seems likely to me that there's some guarantees about snippet length in the backend. Typically snippets are smallish, so what's the big deal about just grabbing the snippet text and strlen()ing it?
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org