Project

General

Profile

« Previous | Next » 

Revision 55638

Resolving #4194 and #4031 - csv issues and author field

View differences:

SearchApiService.java
543 543
        return getCount(request, fullQuery,format, fieldQueries);
544 544
    }
545 545

  
546
/*
546 547

  
547

  
548 548
    @GET
549 549
    @Path("/api/people")
550 550
    @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
......
632 632
        String fullQuery = builtEntity2EntityRelationQuery(RequestResponseHandler.Entity.DATASET, "relpersonid", personid, fieldQueries);
633 633
        return getCount(request, fullQuery, format, fieldQueries);
634 634
    }
635

  
635
*/
636 636
    @GET
637 637
    @Path("/api/reports")
638 638
    @Produces(MediaType.TEXT_PLAIN)
......
652 652
        }
653 653

  
654 654
        long startTime = System.nanoTime();
655
        logger.debug("type " + type);
655 656
        final RequestResponseHandler.Entity entity =  extractEntity(type);
657
        logger.debug("Entity type " + entity);
656 658
        final Transformer transformer = extractTransformer(format, extractEntity(type));
657 659
        final boolean special = isSpecialFormat(format);
658 660
        String responseType =  extractResponseFormat(format);
659 661

  
660 662
        final String fullQuery = buildSearchRequest(entity, keywords, fieldQueries);
663
        logger.debug("fullquery " + fullQuery);
664
        logger.debug("fieldQueries " + fieldQueries);
661 665

  
662 666
        try {
663 667
            SearchResult sr = searchService.newSearch(fullQuery, Locale.getDefault().toString(), fields, fieldQueries,0, 0, format, transformer,null,false);

Also available in: Unified diff