[A] Advanced Search with Confluence CQL Error [closed]

am looking for a order function in confluence CQL.

I want to order by TYPE (page, comment, etc) How is it possible?

I tried this, but it doenst work: https://myconfluence.site/rest/api/content/search?cql=text~%22apos%22&type=page&expand=body.storage&filter=order+by+asc

Thanks for your help!

 

[A] 

It seems you mixed things up a bit :)

This query works for me and orders by id

/rest/api/content/search?cql=type=page+and+text~"apos"+order+by+id+asc&expand=body.storage

Lets see the problems one by one:

  • filter=order+by+asc This does not work, as it is part of the cql syntax
  • order+by+asc You have to tell which field should be ordered by (e.g. id or type)
  • text~%22apos%22&type=page Do not separate with "&", as it is interpreted as 2 query params and not as single cql command. You have to write the key-word "and" to combine several terms.

I hope this solves your issue. Ordering by type would not have any affect in your example as you only search for pages.

Find further information here:

[출처] https://stackoverflow.com/questions/36154567/advanced-search-with-confluence-cql-error

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

 

http://...confluence.com../rest/api/content/search?cql=type=page+and+text~"인공지능"+order+by+id+asc&expand=body.storage,history,space

 

 

final RestTemplate restTemplate = new RestTemplate();

String url = "https://www.confluence.com/rest/api/content/search?cql=type=page+and+text~\" +

                keyword + "\"+order+by+id+asc&expand=body.storage,history,space";

String response = restTemplate.getForObject(url, String.class);    // jsonp  다른 도메인 호출 예?

byte[] bytes = response.getBytes("8859_1");   // 한글 깨짐 방지

String results = new String(bytes, "UTF-8");    // 한글 깨짐 방지

return results;

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
716 SNS 서비스의 기록 백업, 다양한 SNS 관리를 가능하게 하는 서비스는? 커빙, 소셜세이프 file 졸리운_곰 2018.09.04 18
715 오픈 소스 서버 모니터링 툴 소개 file 졸리운_곰 2018.09.02 141
714 전세계의 유명 온라인 프로그래밍 교육서비스 file 졸리운_곰 2018.08.30 114
713 [정보처리 기능사] 알고리즘 요약 file 졸리운_곰 2018.08.25 161
712 [정보처리기사 실기] 요약집 DB 데이터베이스 file 졸리운_곰 2018.08.25 40
711 [정보처리기사 실기] 알고리즘 요약집 file 졸리운_곰 2018.08.25 31
710 더 나은 RESTful API를 위한 10가지 관례 file 졸리운_곰 2018.08.17 23
709 루아 15분 안에 배우기 졸리운_곰 2018.08.14 204
708 단숨에 애플 스위프트(Swift) 배우기 file 졸리운_곰 2018.08.14 22
707 단숨에 루아(Lua) 스크립트 배우기 file 졸리운_곰 2018.08.14 72
706 일곱가지 2017년 최고의 웹 개발 프레임워크 : 7 Best Frameworks For Web Development in 2017 file 졸리운_곰 2018.08.03 42
» 아틀라시안 컴플루언스 rest Api 페이지 검색 졸리운_곰 2018.07.31 86
704 트래픽올리는 방법 졸리운_곰 2018.07.25 25
703 Excel을 활용한 선형계획 풀이 file 졸리운_곰 2018.07.23 145
702 도커파일(Dockerfiles) 졸리운_곰 2018.07.11 22
701 초보를 위한 도커 안내서 - 이미지 만들고 배포하기 file 졸리운_곰 2018.06.26 20
700 초보를 위한 도커 안내서 - 설치하고 컨테이너 실행하기 file 졸리운_곰 2018.06.26 45
699 초보를 위한 도커 안내서 - 도커란 무엇인가? file 졸리운_곰 2018.06.26 271
698 DOCKER에서 GUI프로그램을 돌려야 할 때. file 졸리운_곰 2018.06.26 17
697 XML, JSON, BSON, MSGPACK 장,단점 비교 졸리운_곰 2018.06.26 44
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED