MathWebSearch / mws

MathWebSearch Implementation
https://search.mathweb.org/
GNU General Public License v3.0
46 stars 12 forks source link

restricted MwsAnswet size #68

Closed tobuhl closed 10 years ago

tobuhl commented 10 years ago

I got an issue with the MWS Answer Set. i set the answsize attribute in a MwsQuery to 1'000'000 but the response has only a total size of 100'000. this is my MwsQuery:

<mws:query
xmlns:mws="http://www.mathweb.org/mws/ns"
xmlns:m="http://www.w3.org/1998/Math/MathML"
limitmin="0"
answsize="1000000"
totalreq="yes"
> ...

the response starts with:

<?xml version="1.0"?>
<!--MwsAnswset generated by mathwebsearch-0.8.0 as of Jul 19 2014 15:31:40--><mws:answset xmlns:mws="http://www.mathweb.org/mws/ns" size="100000" total="100000"><mws:answ uri="16

it seems like the total amount of answers is restricted to 100'000.
Is there an option to change this amount? i cant find anything in the documentation

Raduh commented 10 years ago

The number of answers is restricted server-side. In config/config.h.in, change DEFAULT_QUERY_RESULT_TOTAL from 100,000 to 1,000,000

tobuhl commented 10 years ago

after modifying the config.h.in and creating a new instance it still doesnt work. is it required to execute make again?

Raduh commented 10 years ago

Yes. config.h.in generates a config.h file. If you want to skip make, edit the config.h file in build/

cprodescu commented 10 years ago

Yes, make and even make install (if you are using the deployed version) are neccessary. These absolute limits in config.h.in are meant to prevent DOS attacks by requesting arbitrarily large answer sets.

Created #69 to improve documentation. Closing this.