Project

General

Profile

« Previous | Next » 

Revision 57285

return facets with more than the default 100 value

View differences:

IndexVocabularyLoader.java
43 43
					((IndexVocabulary)vocabulary).getTransformer(),
44 44
					"vocabulary", null, 1, REQUEST_SIZE);
45 45

  
46
			int totalResultNumber = fsr.getResultsNumber();
46
			if (fsr !=null) {
47
				int totalResultNumber = fsr.getResultsNumber();
47 48

  
48
			//make sure that every result is loaded
49
			if (totalResultNumber > REQUEST_SIZE ) {
50
				fsr = searchServiceLocator.getService().search(
51
						((IndexVocabulary)vocabulary).getQuery(),
52
						((IndexVocabulary)vocabulary).getTransformer(),
53
						"vocabulary", null, 1, totalResultNumber);
49
				//make sure that every result is loaded
50
				if (totalResultNumber > REQUEST_SIZE) {
51

  
52
					if (fsr != null) {
53
						fsr = searchServiceLocator.getService().search(
54
								((IndexVocabulary) vocabulary).getQuery(),
55
								((IndexVocabulary) vocabulary).getTransformer(),
56
								"vocabulary", null, 1, totalResultNumber);
57
					}
58

  
59
					xml = fsr.getFormattedResult();
60
				}
54 61
			}
55 62

  
56
			xml = fsr.getFormattedResult();
57

  
58 63
		} catch (SearchServiceException sse) {
59 64
			logger.error("Error getting Vocabulary xml", sse);
60 65
		}

Also available in: Unified diff