You can search case sensitive  by this :

public static SearchResponse search(String indexName,String indexType,String
key,String value , Client client) {
        
        QueryFilterBuilder qb =  
FilterBuilders.queryFilter(QueryBuilders.queryString(value+"*")); 
       
        return client.prepareSearch(indexName)
                .setTypes(indexType)
                .setSearchType(SearchType.DFS_QUERY_AND_FETCH)
               
.setQuery(QueryBuilders.filteredQuery(QueryBuilders.prefixQuery(key, value),
qb)).execute()
                .actionGet();
    }
    



--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/case-sensitivity-in-ES-tp4018579p4063834.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1411359439874-4063834.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to