안녕하세요 사용하다가 질문이 있어서요

342 views
Skip to first unread message

JUNKOO LEE

unread,
Feb 21, 2020, 2:57:41 PM2/21/20
to 은전한닢 프로젝트
curl -X POST http://localhost:9200/hospital -d '{  
    "settings" : {    
        "analysis" : {                                             
            "analyzer" : {        
                "korean_analyzer" : {            
                    "type":"custom",            
                    "tokenizer":"seunjeon_default_tokenizer"        
                }      
            },      
            "tokenizer": {          
                "seunjeon_default_tokenizer": {            
                    "type": "seunjeon_tokenizer"          
                }        
            }    
        }  
    },  
    "mappings" : {    
        "board" : {      
            "properties" : {                
                "confirmdate" : { "type" : "integer" },   
 "name" : { "type" : "string", "analyzer" : "korean_analyzer" }, 
........


위와 같이 만들어 사용중인데요

"script_score" : { "script": "_index['text']['게시글'].tf()" }

위와 같은 쿼리를 날리는 경우 게시글이라는 단어의 갯수를 가져오는데 

이런 게시글 입니다. <-- 이런 경우는 갯수에 포함이 되는데
요런 게시글입니다. <-- 이렇게 뒤에 한글이 달라 붙은경우는 포함이 안됩니다.

해결점이 있을까요? ㅜㅜ
Reply all
Reply to author
Forward
0 new messages