######################## 
# Global Constants File
# 
# All Constants that can be modified should be placed here
######################## 

DF_DOC_ID_NO, DF_TITLE_NO, DF_CONTENT_NO, DF_DATE_POSTED_NO, DF_COURT_NO = range(5)
TEMBUSU_MODE = False
PROCESS_COUNT = 6 if TEMBUSU_MODE else 3
BATCH_SIZE = 6 if TEMBUSU_MODE else 6

CSV_FILE_TEST = "data\\first100.csv"        # test indexing file with 100 documents
DICTIONARY_FILE_TEST = "dictionary.txt"
POSTINGS_FILE_TEST = "postings.txt"
QUERY_FILE_TEST = 'queries.txt'
OUTPUT_FILE_TEST = 'output.txt'

## Intermediate files used to store more information
TITLE_DICTIONARY_FILE = "dictionary_title.txt"  # dictionary for document titles
TITLE_POSTINGS_FILE = "postings_title.txt"      # posting lists for document titles
VECTOR_POSTINGS_FILE = "vector.txt"             # document vectors
DOCUMENT_PROPERTIES_FILE = "properties.txt"     # document properties

#################################
# TUNING SETTINGS FOR SEARCHING #
#################################

## Weights
SINGLE_TERMS_WEIGHT = 1
BIWORD_PHRASES_WEIGHT = 1
TRIWORD_PHRASES_WEIGHT = 1
TITLE_WEIGHT = 1
CONTENT_WEIGHT = 1
ROCCHIO_ORIGINAL_QUERY_WEIGHT = 0.75
ROCCHIO_CENTROID_WEIGHT = 0.25

## Search modes
EXPAND_QUERY = False
NUM_QUERIES_IN_FILE = 1
MULTIPLE_QUERIES_IN_FILE = False
CONTENT_ONLY = True
NUM_DOCS_TO_FEEDBACK = 50
ROCCHIO_TERMS = 50
TRIGGER_ROCCHIO_LEVEL = 2
