Comment out the 'loadtest' backend in the 'counter' backend sample so that it does...
[gae-samples.git] / search / product_search_python / config.py
blob922e8ac6a199db5b1dddfd2c70895f7e6846c0ee
1 #!/usr/bin/env python
3 # Copyright 2012 Google Inc.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 """ Holds configuration settings.
18 """
21 PRODUCT_INDEX_NAME = 'productsearch1' # The document index name.
22 # An index name must be a visible printable
23 # ASCII string not starting with '!'. Whitespace characters are
24 # excluded.
26 STORE_INDEX_NAME = 'stores1'
28 # set BATCH_RATINGS_UPDATE to False to update documents with changed ratings
29 # info right away. If True, updates will only occur when triggered by
30 # an admin request or a cron job. See cron.yaml for an example.
31 BATCH_RATINGS_UPDATE = False
32 # BATCH_RATINGS_UPDATE = True
34 # The max and min (integer) ratings values allowed.
35 RATING_MIN = 1
36 RATING_MAX = 5
38 # the number of search results to display per page
39 DOC_LIMIT = 3
41 SAMPLE_DATA_BOOKS = 'sample_data_books.csv'
42 SAMPLE_DATA_TVS = 'sample_data_tvs.csv'
43 DEMO_UPDATE_BOOKS_DATA = 'sample_data_books_update.csv'
45 # the size of the import batches, when reading from the csv file. Must not
46 # exceed 100.
47 IMPORT_BATCH_SIZE = 5