replace
-
DocumentBackEnd/Elasticsearch API 2025. 3. 9. 10:00
Create# create an indexPUT /my_index{ "settings": { "index": { "number_of_shards": 1, // You can specify the number of shards here "number_of_replicas": 1 // Set to 0 for no replicas } }}# crate a documentPOST /my_index/_doc/100{ "title": "Elasticsearch Advanced", "author": "Anthony K", "publish_date": "2024-05-20", "tags": ["search", "analytics"]} RetrieveGET /my_index/..
-
12. Querydsl SQL functionBackEnd/Querydsl 2021. 7. 29. 21:11
[전체소스코드] SQL function은 JPA와 같이 Dialect에 등록된 내용만 호출할 수 있다. 1. Replace String result = queryFactory .select(Expressions.stringTemplate("function('replace', {0}, {1}, {2})", member.username, "member", "M")) .from(member) .fetchFirst(); // result : M1 2. lower String result = queryFactory .select(member.username) .from(member) // .where(member.username.eq(Expressions.stringTemplate("function('lower'..