Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aleksandra Tsys
Suggester
Commits
0fec80cb
Commit
0fec80cb
authored
Aug 13, 2020
by
Aleksandra Tsys
Browse files
demo to yelp
parent
c19a9a4f
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0fec80cb
...
...
@@ -5,7 +5,7 @@
Данные: https://at.ispras.ru/owncloud/index.php/s/ilMufYYEqA8bUvT
Загрузить данные в solr проект:
`curl 'http://localhost:8983/solr/
demo
/update?commit=true' --data-binary @/home/sasha/yelp/final.json -H 'Content-type:application/json'`
`curl 'http://localhost:8983/solr/
yelp
/update?commit=true' --data-binary @/home/sasha/yelp/final.json -H 'Content-type:application/json'`
## Инструкция к run
...
...
run
View file @
0fec80cb
...
...
@@ -36,7 +36,7 @@ case "$1" in
echo
"You have failed to specify what to do correctly."
echo
"Available options:"
echo
'"./run get-yelp" downloads yelp data from owncloud into data/ directory.'
echo
'"./run reindex-yelp" drops existing
demo
indices and builds a new one using yelp data.'
echo
'"./run reindex-yelp" drops existing
yelp
indices and builds a new one using yelp data.'
echo
'"./run all" starts everything'
echo
'"./run down" stops containers and removes them.'
exit
1
...
...
yelp/conf/solrconfig.xml
View file @
0fec80cb
...
...
@@ -325,14 +325,15 @@
<searchComponent
name=
"suggest"
class=
"solr.SuggestComponent"
>
<lst
name=
"suggester"
>
<str
name=
"name"
>
mySuggester
</str>
<str
name=
"lookupImpl"
>
org.apache.solr.spelling.suggest.fst.My
FuzzyLookupFactory
</str>
<str
name=
"lookupImpl"
>
FuzzyLookupFactory
</str>
<str
name=
"storeDir"
>
suggester_fuzzy_dir
</str>
<str
name=
"dictionaryImpl"
>
DocumentDictionaryFactory
</str>
<str
name=
"field"
>
name
</str>
<str
name=
"suggestAnalyzerFieldType"
>
textSuggest
</str>
<str
name=
"contextField"
>
tags
</str>
<str
name=
"buildOnStartup"
>
true
</str>
<str
name=
"buildOnCommit"
>
true
</str>
<str
name=
"suggestAnalyzerFieldType"
>
string
</str>
<!--<str name="suggestAnalyzerFieldType">textSuggest</str>
<str name="contextField">tags</str> -->
<str
name=
"buildOnStartup"
>
false
</str>
<str
name=
"buildOnCommit"
>
false
</str>
</lst>
</searchComponent>
...
...
yelp/core.properties
0 → 100644
View file @
0fec80cb
#Written by CorePropertiesLocator
#Fri Jul 10 07:18:17 UTC 2020
name
=
yelp
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment