/lucene-3.6.0/solr/client/ruby/flare/config/ |
H A D | routes.rb | 13 ActionController::Routing::Routes.draw do |map| 17 # map.connect 'products/:id', :controller => 'catalog', :action => 'view' 21 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase' 26 map.connect '', :controller => "browse" 28 map.connect 'browse/facet', :controller => "browse", :action => "facet" 30 map.connect 'saved/:name', :controller => 'browse', :action => 'show_saved' 34 # map.connect ':controller/service.wsdl', :action => 'wsdl' 37 # map.connect ':controller/:action/:id.:format' 38 map.connect ':controller/:action.:format' 39 map [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | MapBackedSet.java | 37 private final Map<E, Boolean> map; field in class:MapBackedSet 40 * Creates a new instance which wraps the specified {@code map}. 42 public MapBackedSet(Map<E, Boolean> map) { argument 43 this.map = map; 48 return map.size(); 53 return map.containsKey(o); 58 return map.put(o, Boolean.TRUE) == null; 63 return map.remove(o) != null; 68 map [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/ |
H A D | TestWeakIdentityMap.java | 30 final WeakIdentityMap<String,String> map = 45 map.put(key1, "bar1"); 46 map.put(key2, "bar2"); 47 map.put(null, "null"); 49 assertEquals(3, map.size()); 51 assertEquals("bar1", map.get(key1)); 52 assertEquals("bar2", map.get(key2)); 53 assertEquals(null, map.get(key3)); 54 assertEquals("null", map.get(null)); 56 assertTrue(map [all...] |
/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/ |
H A D | TestSlowSynonymFilter.java | 77 SlowSynonymMap map = new SlowSynonymMap(); 81 map.add(strings("a b"), tokens("ab"), orig, merge); 82 map.add(strings("a c"), tokens("ac"), orig, merge); 83 map.add(strings("a"), tokens("aa"), orig, merge); 84 map.add(strings("b"), tokens("bb"), orig, merge); 85 map.add(strings("z x c v"), tokens("zxcv"), orig, merge); 86 map.add(strings("x c"), tokens("xc"), orig, merge); 88 assertTokenizesTo(map, "$", new String[] { "$" }); 89 assertTokenizesTo(map, "a", new String[] { "aa" }); 90 assertTokenizesTo(map, " [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/util/collections/ |
H A D | ArrayHashMapTest.java | 35 ArrayHashMap<Integer,Integer> map = new ArrayHashMap<Integer,Integer>(); 37 assertNull(map.get(0)); 41 assertFalse(map.containsValue(value)); 42 map.put(i, value); 43 assertTrue(map.containsValue(value)); 44 assertNotNull(map.get(i)); 47 assertEquals(100, map.size()); 49 assertTrue(map.containsKey(i)); 50 assertEquals(100 + i, map.get(i).intValue()); 55 map [all...] |
H A D | FloatToObjectMapTest.java | 33 FloatToObjectMap<Integer> map = new FloatToObjectMap<Integer>(); 35 assertNull(map.get(0)); 39 assertFalse(map.containsValue(value)); 40 map.put(i * 1.1f, value); 41 assertTrue(map.containsValue(value)); 42 assertNotNull(map.get(i * 1.1f)); 45 assertEquals(100, map.size()); 47 assertTrue(map.containsKey(i*1.1f)); 48 assertEquals(100 + i, map.get(i*1.1f).intValue()); 53 map [all...] |
H A D | IntToDoubleMapTest.java | 37 IntToDoubleMap map = new IntToDoubleMap(); 39 assertGround(map.get(0)); 43 assertFalse(map.containsValue(value)); 44 map.put(i, value); 45 assertTrue(map.containsValue(value)); 46 assertNotNull(map.get(i)); 49 assertEquals(100, map.size()); 51 assertTrue(map.containsKey(i)); 52 assertEquals(100 + i, map.get(i), Double.MAX_VALUE); 57 map [all...] |
H A D | IntToIntMapTest.java | 36 IntToIntMap map = new IntToIntMap(); 38 assertGround(map.get(0)); 42 assertFalse(map.containsValue(value)); 43 map.put(i, value); 44 assertTrue(map.containsValue(value)); 45 assertNotNull(map.get(i)); 48 assertEquals(100, map.size()); 50 assertTrue(map.containsKey(i)); 51 assertEquals(100 + i, map.get(i)); 56 map [all...] |
H A D | IntToObjectMapTest.java | 34 IntToObjectMap<Integer> map = new IntToObjectMap<Integer>(); 36 assertNull(map.get(0)); 40 assertFalse(map.containsValue(value)); 41 map.put(i, value); 42 assertTrue(map.containsValue(value)); 43 assertNotNull(map.get(i)); 46 assertEquals(100, map.size()); 48 assertTrue(map.containsKey(i)); 49 assertEquals(100 + i, map.get(i).intValue()); 54 map [all...] |
H A D | ObjectToFloatMapTest.java | 34 ObjectToFloatMap<Integer> map = new ObjectToFloatMap<Integer>(); 36 assertNaN(map.get(0)); 40 assertFalse(map.containsValue(value)); 41 map.put(i, value); 42 assertTrue(map.containsValue(value)); 43 assertNotNaN(map.get(i)); 46 assertEquals(100, map.size()); 48 assertTrue(map.containsKey(i)); 49 assertEquals(100 + i, map.get(i), 1E-5); 54 map [all...] |
H A D | ObjectToIntMapTest.java | 34 ObjectToIntMap<Integer> map = new ObjectToIntMap<Integer>(); 36 assertIntegerMaxValue(map.get(0)); 40 assertFalse(map.containsValue(value)); 41 map.put(i, value); 42 assertTrue(map.containsValue(value)); 43 assertNotIntegerMaxValue(map.get(i)); 46 assertEquals(100, map.size()); 48 assertTrue(map.containsKey(i)); 49 assertEquals(100 + i, map.get(i), 1E-5); 54 map [all...] |
/lucene-3.6.0/solr/core/src/test/org/apache/solr/util/ |
H A D | TestUtils.java | 77 SimpleOrderedMap<Integer> map = new SimpleOrderedMap<Integer>(); 78 map.add( "test", 10 ); 79 SimpleOrderedMap<Integer> clone = map.clone(); 80 assertEquals( map.toString(), clone.toString() ); 87 map = new SimpleOrderedMap<Integer>(); 88 map.addAll( realMap ); 89 assertEquals( 3, map.size() ); 90 map = new SimpleOrderedMap<Integer>(); 91 map.add( "one", 1 ); 92 map [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/ |
H A D | TestCharArrayMap.java | 31 CharArrayMap<Integer> map = new CharArrayMap<Integer>(TEST_VERSION_CURRENT, 1, ignoreCase); 46 Object o1 = map.put(key, val); 51 assertEquals(val, map.put(keyStr,val).intValue()); 53 assertEquals(val, map.get(key,0,key.length).intValue()); 54 assertEquals(val, map.get(key).intValue()); 55 assertEquals(val, map.get(keyStr).intValue()); 57 assertEquals(hmap.size(), map.size()); 139 CharArrayMap<Integer> map = new CharArrayMap<Integer>(TEST_VERSION_CURRENT, 2, false); 140 map.put("foo",1); 141 map [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/ |
H A D | TestCharArrayMap.java | 31 CharArrayMap<Integer> map = new CharArrayMap<Integer>(TEST_VERSION_CURRENT, 1, ignoreCase); 46 Object o1 = map.put(key, val); 51 assertEquals(val, map.put(keyStr,val).intValue()); 53 assertEquals(val, map.get(key,0,key.length).intValue()); 54 assertEquals(val, map.get(key).intValue()); 55 assertEquals(val, map.get(keyStr).intValue()); 57 assertEquals(hmap.size(), map.size()); 139 CharArrayMap<Integer> map = new CharArrayMap<Integer>(TEST_VERSION_CURRENT, 2, false); 140 map.put("foo",1); 141 map [all...] |
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/params/ |
H A D | MultiMapSolrParams.java | 30 protected final Map<String,String[]> map; field in class:MultiMapSolrParams 32 public static void addParam(String name, String val, Map<String,String[]> map) { argument 33 String[] arr = map.get(name); 42 map.put(name, arr); 45 public MultiMapSolrParams(Map<String,String[]> map) { argument 46 this.map = map; 51 String[] arr = map.get(name); 57 return map.get(name); 62 return map [all...] |
H A D | MapSolrParams.java | 30 protected final Map<String,String> map; field in class:MapSolrParams 32 public MapSolrParams(Map<String,String> map) { argument 33 this.map = map; 38 return map.get(name); 43 String val = map.get(name); 49 return map.keySet().iterator(); 52 public Map<String,String> getMap() { return map; } 60 for (Map.Entry<String,String> entry : map.entrySet()) {
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/schema/ |
H A D | MockExchangeRateProvider.java | 32 private static Map<String,Double> map = new HashMap<String,Double>(); field in class:MockExchangeRateProvider 34 map.put("USD,EUR", 0.8); 35 map.put("EUR,USD", 1.2); 36 map.put("USD,NOK", 5.0); 37 map.put("NOK,USD", 0.2); 38 map.put("EUR,NOK", 10.0); 39 map.put("NOK,EUR", 0.1); 49 Double result = map.get(sourceCurrencyCode+","+targetCurrencyCode); 57 Set<String> currenciesPairs = map.keySet();
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/ |
H A D | CharArraySet.java | 60 private final CharArrayMap<Object> map; field in class:CharArraySet 126 /** Create set from the specified map (internal only), used also by {@link CharArrayMap#keySet()} */ 127 CharArraySet(final CharArrayMap<Object> map){ argument 128 this.map = map; 134 map.clear(); 140 return map.containsKey(text, off, len); 145 return map.containsKey(cs); 150 return map.containsKey(o); 155 return map [all...] |
H A D | NormalizeCharMap.java | 24 * Holds a map of String input to String output, to be used 48 NormalizeCharMap map = currMap.submap.get(Character.valueOf(c)); 49 if (map == null) { 50 map = new NormalizeCharMap(); 51 currMap.submap.put(Character.valueOf(c), map); 53 currMap = map;
|
/lucene-3.6.0/solr/client/ruby/solr-ruby/lib/solr/importer/ |
H A D | array_mapper.rb | 18 # TODO: make merge conflict handling configurable. as is, the last map fields win. 19 def map(orig_data_array) method in class:Solr 22 mapped_data.merge!(@mapping[i].map(data))
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/request/ |
H A D | MapSolrParams.java | 30 public MapSolrParams(Map<String, String> map) { argument 31 super(map);
|
H A D | MultiMapSolrParams.java | 29 public MultiMapSolrParams(Map<String, String[]> map) { argument 30 super(map);
|
/lucene-3.6.0/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/ |
H A D | TestScriptTransformer.java | 51 Map<String, Object> map = new HashMap<String, Object>(); 52 map.put("name", "Scott"); 55 sep.applyTransformer(map); 56 assertEquals(map.get("name"), "Hello Scott"); 85 Map<String, Object> map = new HashMap<String, Object>(); 86 map.put("name", "Scott"); 89 sep.applyTransformer(map); 90 assertEquals(map.get("name"), "Hello Scott"); 129 Map map = new HashMap(); 130 map [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/spelling/ |
H A D | SpellingResult.java | 59 LinkedHashMap<String, Integer> map = this.suggestions.get(token); 60 if (map == null ) { 61 map = new LinkedHashMap<String, Integer>(); 62 this.suggestions.put(token, map); 65 map.put(suggestion, NO_FREQUENCY_INFO); 95 LinkedHashMap<String, Integer> map = this.suggestions.get(token); 97 if (map == null) { 98 map = new LinkedHashMap<String, Integer>(); 99 this.suggestions.put(token, map); 101 map [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/index/ |
H A D | CategoryContainer.java | 45 protected transient Map<CategoryPath, CategoryAttribute> map; field in class:CategoryContainer 51 map = new HashMap<CategoryPath, CategoryAttribute>(); 128 * {@link CategoryPath}, from the map. 132 CategoryAttribute ca = map.get(categoryPath); 135 map.put(categoryPath, ca); 148 return map.get(categoryPath); 152 return map.values().iterator(); 159 map.clear(); 164 for (CategoryAttribute categoryAttribute : other.map.values()) { 175 return map [all...] |