mirror of
https://github.com/koniu/recoll-webui.git
synced 2025-10-03 09:49:25 +02:00
make 'maxchars' configurable
This commit is contained in:
parent
813304bed2
commit
bddbc00900
2 changed files with 4 additions and 1 deletions
3
webui.py
3
webui.py
|
@ -26,6 +26,7 @@ DEFAULTS = {
|
|||
'stem': 1,
|
||||
'timefmt': '%c',
|
||||
'dirdepth': 3,
|
||||
'maxchars': 500,
|
||||
}
|
||||
|
||||
# sort fields/labels
|
||||
|
@ -152,7 +153,7 @@ def recoll_search(q, sort, ascending):
|
|||
tstart = datetime.datetime.now()
|
||||
results = []
|
||||
db = recoll.connect()
|
||||
db.setAbstractParams(contextwords=int(config['context']), maxchars=5000)
|
||||
db.setAbstractParams(contextwords=int(config['context']), maxchars=config['maxchars'])
|
||||
query = db.query()
|
||||
query.sortby(sort, int(ascending))
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue