How do I configure synonym token filter and stop token filter? Help me please
curl -X PUT "localhost:9200/kb_mediawiki_general_first/_settings?pretty" -H 'Content-Type: application/json' -d'
{
┆ "settings": {
┆ ┆ "analysis": {
┆ ┆ ┆ "filter": {
┆ ┆ ┆ ┆ "my_stop": {
┆ ┆ ┆ ┆ ┆ "type": "stop",
┆ ┆ ┆ ┆ ┆ "stopwords_path": "analysis/stop.txt"
┆ ┆ ┆ ┆ }
┆ ┆ ┆ }
┆ ┆ }
┆ }
}'
curl -X PUT "localhost:9200/kb_mediawiki_content_first/_settings?pretty" -H 'Content-Type: application/json' -d'
{
┆ "settings": {
┆ ┆ "analysis": {
┆ ┆ ┆ "filter": {
┆ ┆ ┆ ┆ "my_stop": {
┆ ┆ ┆ ┆ ┆ "type": "stop",
┆ ┆ ┆ ┆ ┆ "stopwords_path": "analysis/stop.txt"
┆ ┆ ┆ ┆ }
┆ ┆ ┆ }
┆ ┆ }
┆ }
}'
This way doesn't seem to work :/