Examples of CrescentCollectionHandler


Examples of com.tistory.devyongsik.crescent.config.CrescentCollectionHandler

public class SearchRequestValidator {
 
  public boolean isValid(SearchRequest searchRequest) throws CrescentInvalidRequestException {
   
    //collection name
    CrescentCollectionHandler collectionHandler
    = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
   
    CrescentCollection collection = collectionHandler.getCrescentCollections()
                          .getCrescentCollection(searchRequest.getCollectionName());
   
    if(collection == null) {
      throw new CrescentInvalidRequestException("Wrong Collection Name : " + searchRequest.getCollectionName());
    }
View Full Code Here

Examples of com.tistory.devyongsik.crescent.config.CrescentCollectionHandler

        List<Map<String, String>> resultList = new ArrayList<Map<String, String>>();
        Map<String, Object> result = new HashMap<String, Object>();
       
        CrescentFastVectorHighlighter highlighter = new CrescentFastVectorHighlighter();
       
        CrescentCollectionHandler collectionHandler
        = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
        CrescentCollection collection = collectionHandler.getCrescentCollections().getCrescentCollection(csrw.getCollectionName());
       
        //int docnum = 0;
        for(int i = startOffset; i < endOffset; i++) {
         
          Map<String,String> resultMap = new HashMap<String, String>();
View Full Code Here

Examples of com.tistory.devyongsik.crescent.config.CrescentCollectionHandler

  private CrescentCollection collection = null;
  private Map<String, CrescentCollectionField> collectionFieldsMap = null;
 
  public CrescentSearchRequestWrapper(SearchRequest searchRequest) {
    this.searchRequest = searchRequest; 
    CrescentCollectionHandler collectionHandler
    = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
    this.collection = collectionHandler.getCrescentCollections().getCrescentCollection(searchRequest.getCollectionName());
    this.collectionFieldsMap = collection.getCrescentFieldByName();
  }
View Full Code Here

Examples of com.tistory.devyongsik.crescent.config.CrescentCollectionHandler

        ModelAndView modelAndView = new ModelAndView();
    Map<String, Object> result = new HashMap<String, Object>();

    modelAndView.setViewName("/admin/indexFileManageMain");

        CrescentCollectionHandler collectionHandler
                = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
        List<String> collectionNames = new ArrayList<String>();

        for (CrescentCollection crescentCollection : collectionHandler.getCrescentCollections().getCrescentCollections()) {
            collectionNames.add(crescentCollection.getName());
        }

        String selectCollectionName = collectionNames.get(0);
        CrescentCollection selectCollection = collectionHandler
                                                    .getCrescentCollections()
                                                    .getCrescentCollection(selectCollectionName);

    IndexInfo indexInfo = indexFileManageService.getIndexInfo(selectCollection);
View Full Code Here

Examples of com.tistory.devyongsik.crescent.config.CrescentCollectionHandler

  }

  @Test
  public void collectionFieldTest() {

    CrescentCollectionHandler collectionHandler
    = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
   
    CrescentCollections crescentCollections = collectionHandler.getCrescentCollections();

    Map<String, CrescentCollection> collections = crescentCollections.getCrescentCollectionsMap();

    CrescentCollection sampleCollection = collections.get("sample");
View Full Code Here

Examples of com.tistory.devyongsik.crescent.config.CrescentCollectionHandler

    super.init();
  }

  @Test
  public void collectionTest() {
    CrescentCollectionHandler collectionHandler
    = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
   
    CrescentCollections crescentCollections = collectionHandler.getCrescentCollections();

    Map<String, CrescentCollection> collections = crescentCollections.getCrescentCollectionsMap();

    CrescentCollection sampleCollection = collections.get("sample");
   
View Full Code Here

Examples of com.tistory.devyongsik.crescent.config.CrescentCollectionHandler

    doc.put("board_id", "1");
    doc.put("title", "제목");
   
    docList.add(doc);
   
    CrescentCollectionHandler collectionHandler
    = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
   
    CrescentCollections crescentCollections = collectionHandler.getCrescentCollections();

    Map<String, CrescentCollection> collections = crescentCollections.getCrescentCollectionsMap();

    CrescentCollection sampleCollection = collections.get("sample");
   
View Full Code Here

Examples of com.tistory.devyongsik.crescent.config.CrescentCollectionHandler

    super.init();
  }

  @Test
  public void create() {
    CrescentCollectionHandler collectionHandler
    = SpringApplicationContext.getBean("crescentCollectionHandler", CrescentCollectionHandler.class);
   
    CrescentCollections crescentCollections = collectionHandler.getCrescentCollections();

    Map<String, CrescentCollection> collections = crescentCollections.getCrescentCollectionsMap();

    CrescentCollection sampleCollection = collections.get("sample");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.