Commit 668cac4d1b992742db942dc3a086d8089a1da97d

Authored by Jean-François Rey
1 parent 1e7751e7ca
Exists in master

check if solr quieres is empty

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

main_tools/ExploitConfidencePass.sh
... ... @@ -227,10 +227,10 @@
227 227 datePattern=`$SCRIPT_PATH/daybefore2after.sh $(echo $BASENAME | cut -c1-6)`
228 228 # Create SOLR queries
229 229 cat $SHOW_DIR/$bn".confzone" | $SCRIPT_PATH/GenerateSOLRQueries.pl | iconv -f ISO_8859-1 -t UTF-8 > "$SHOW_DIR/$bn.queries"
230   - query=$(cat $SHOW_DIR/$bn.queries)"&fq=docDate:[$datePattern]"
231   - echo $query > $SHOW_DIR/$bn.queries
232 230 # Ask SOLR DB
233 231 if [ $(wc -w "$SHOW_DIR/$bn.queries" | cut -f1 -d' ') -gt 0 ]; then
  232 + query=$(cat $SHOW_DIR/$bn.queries)"&fq=docDate:[$datePattern]"
  233 + echo $query > $SHOW_DIR/$bn.queries
234 234 python $SCRIPT_PATH/ProcessSOLRQueries.py $SHOW_DIR/$bn.queries $SOLR_RES/$bn.keywords.tmp $SOLR_RES/$bn.txt.tmp
235 235 cat $SOLR_RES/$bn.keywords.tmp | sort -u > $SOLR_RES/$bn.keywords
236 236 cat $SOLR_RES/$bn.txt.tmp | sort -u > $SOLR_RES/$bn.txt