/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/flare/app/helpers/ |
H A D | application_helper.rb | 14 def facet_label(field) 15 field.match(/(.*)_.*/)[1].humanize.downcase
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/ |
H A D | FieldCacheSource.java | 24 * a single field from the {@link org.apache.lucene.search.FieldCache}. 29 protected String field; field in class:FieldCacheSource 32 public FieldCacheSource(String field) { argument 33 this.field=field; 42 return field; 49 return this.field.equals(other.field) 55 return cache.hashCode() + field.hashCode();
|
H A D | OrdFieldSource.java | 28 * Obtains the ordinal of the field value from the default Lucene {@link org.apache.lucene.search.FieldCache} using getStringIndex(). 30 * The native lucene index order is used to assign an ordinal value for each field value. 34 * If there were only three field values: "apple","banana","pear" 46 protected String field; field in class:OrdFieldSource 48 public OrdFieldSource(String field) { argument 49 this.field = field; 54 return "ord(" + field + ')'; 60 return new StringIndexDocValues(this, reader, field) { 101 return o.getClass() == OrdFieldSource.class && this.field [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/function/ |
H A D | FieldCacheSource.java | 27 * a single field from the {@link org.apache.lucene.search.FieldCache FieldCache}. 31 * It is assumed that each such indexed field is untokenized, or at least has a single token in a document. 32 * For documents with multiple tokens of the same field, behavior is undefined (It is likely that current 35 * Document with no tokens in this field are assigned the <code>Zero</code> value. 47 private String field; field in class:FieldCacheSource 50 * Create a cached field source for the input field. 52 public FieldCacheSource(String field) { argument 53 this.field=field; 74 getCachedFieldValues(FieldCache cache, String field, IndexReader reader) argument [all...] |
H A D | FieldScoreQuery.java | 21 * A query that scores each document as the value of the numeric input field. 24 * value of that field. 28 * <li>The field used here is indexed, and has exactly 30 * <li>Best if this field is un_tokenized.</li> 40 * field. So in fact the "right" type should be selected before indexing. Type selection 50 * Values for the numeric field are loaded once and cached in memory for further use with the same IndexReader. 53 * paid for loading the field values into memory over and over again! 60 * Type of score field, indicating how field values are interpreted/parsed. 62 * The type selected at search search time should match the data stored in the field 104 FieldScoreQuery(String field, Type type) argument 109 getValueSource(String field, Type type) argument [all...] |
H A D | OrdFieldSource.java | 26 * Expert: obtains the ordinal of the field value from the default Lucene 29 * The native lucene index order is used to assign an ordinal value for each field value. 34 * <br>If there were only three field values: "apple","banana","pear" 53 protected String field; field in class:OrdFieldSource 56 * Constructor for a certain field. 57 * @param field field whose values order is used. 59 public OrdFieldSource(String field) { argument 60 this.field = field; [all...] |
H A D | ReverseOrdFieldSource.java | 26 * Expert: obtains the ordinal of the field value from the default Lucene 30 * The native lucene index order is used to assign an ordinal value for each field value. 35 * <br>If there were only three field values: "apple","banana","pear" 54 public String field; field in class:ReverseOrdFieldSource 57 * Contructor for a certain field. 58 * @param field field whose values reverse order is used. 60 public ReverseOrdFieldSource(String field) { argument 61 this.field = field; [all...] |
/lucene-3.6.0/solr/client/ruby/solr-ruby/test/unit/ |
H A D | field_test.rb | 19 field = Solr::Field.new :creator => 'Erik Hatcher' 20 assert_kind_of Solr::XML::Element, field.to_xml 21 assert_match(/<field name=["']creator["']>Erik Hatcher<\/field>/, field.to_xml.to_s) 25 field = Solr::Field.new :creator => 'Erik Hatcher & His Amazing Leaping Ability' 26 assert_kind_of Solr::XML::Element, field.to_xml 27 assert_match(/<field name=["']creator["']>Erik Hatcher & His Amazing Leaping Ability<\/field>/, field [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/ext/ |
H A D | ExtensionQuery.java | 24 * query string like the query field and the extension query string. 32 private final String field; field in class:ExtensionQuery 39 * @param field 40 * the query field 44 public ExtensionQuery(QueryParser topLevelParser, String field, String rawQueryString) { argument 45 this.field = field; 51 * Returns the query field 53 * @return the query field 56 return field; [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | Term.java | 25 the field that the text occurred in, an interned string. 31 String field; field in class:Term 34 /** Constructs a Term with the given field and text. 35 * <p>Note that a null field or null text value results in undefined 38 field = StringHelper.intern(fld); 42 /** Constructs a Term with the given field and empty text. 43 * This serves two purposes: 1) reuse of a Term with the same field. 53 field = intern ? StringHelper.intern(fld) : fld; // field names are interned 57 /** Returns the field o 59 public final String field() { return field; } method in class:Term [all...] |
H A D | FreqProxFieldMergeState.java | 33 final FreqProxTermsWriterPerField field; field in class:FreqProxFieldMergeState 51 public FreqProxFieldMergeState(FreqProxTermsWriterPerField field) { argument 52 this.field = field; 53 this.charPool = field.perThread.termsHashPerThread.charPool; 54 this.numPostings = field.termsHashPerField.numPostings; 55 this.termIDs = field.termsHashPerField.sortPostings(); 56 this.postings = (FreqProxPostingsArray) field.termsHashPerField.postingsArray; 71 field.termsHashPerField.initReader(freq, currentTermID, 0); 72 if (field [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ |
H A D | AnyQueryNode.java | 31 private CharSequence field = null; field in class:AnyQueryNode 38 public AnyQueryNode(List<QueryNode> clauses, CharSequence field, argument 41 this.field = field; 55 ((FieldableNode) clause).setField(field); 70 * returns null if the field was not specified 72 * @return the field 75 return this.field; 79 * returns - null if the field was not specified 81 * @return the field a 94 setField(CharSequence field) argument [all...] |
H A D | QuotedFieldQueryNode.java | 31 * @param field 32 * - field name 40 public QuotedFieldQueryNode(CharSequence field, CharSequence text, int begin, argument 42 super(field, text, begin, end); 47 if (isDefaultField(this.field)) { 50 return this.field + ":" + "\"" + getTermEscapeQuoted(escaper) + "\""; 57 + "' field='" + this.field + "' term='" + this.text + "'/>";
|
H A D | FieldQueryNode.java | 26 * A {@link FieldQueryNode} represents a element that contains field/text tuple 33 * The term's field 35 protected CharSequence field; field in class:FieldQueryNode 58 * @param field 59 * - field name 67 public FieldQueryNode(CharSequence field, CharSequence text, int begin, argument 69 this.field = field; 86 if (isDefaultField(this.field)) { 89 return this.field 141 setField(CharSequence field) argument [all...] |
H A D | ProximityQueryNode.java | 74 private CharSequence field = null; field in class:ProximityQueryNode 79 * @param field 80 * - field name 89 public ProximityQueryNode(List<QueryNode> clauses, CharSequence field, argument 95 this.field = field; 107 clearFields(clauses, field); 113 * @param field 114 * - field name 121 public ProximityQueryNode(List<QueryNode> clauses, CharSequence field, argument 126 clearFields(List<QueryNode> nodes, CharSequence field) argument 230 setField(CharSequence field) argument [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/ |
H A D | Document.java | 27 * A Document is a set of fields. Each field has a name and a textual value. 28 * A field may be {@link Fieldable#isStored() stored} with the document, in which 47 /** Sets a boost factor for hits on any field of this document. This value 53 * each field in this document. Thus, this method in effect sets a default 79 * <p>Adds a field to a document. Several fields may be added with 88 public final void add(Fieldable field) { argument 89 fields.add(field); 93 * <p>Removes field with the specified name from the document. 94 * If multiple fields exist with this name, this method removes the first field that has been added. 95 * If there is no field wit [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | FieldValueFilter.java | 28 * given field. This {@link Filter} request {@link Bits} from the 32 private final String field; field in class:FieldValueFilter 38 * @param field 39 * the field to filter 41 public FieldValueFilter(String field) { argument 42 this(field, false); 48 * @param field 49 * the field to filter 52 * field are accepted. 55 public FieldValueFilter(String field, boolea argument 64 public String field() { method in class:FieldValueFilter [all...] |
H A D | SortField.java | 28 * field. Fields must be indexed in order to sort by them. 96 private String field; field in class:SortField 107 /** Creates a sort by terms in the given field with the type of term 109 * @param field Name of field to sort by. Can be <code>null</code> if 113 public SortField(String field, int type) { argument 114 initFieldType(field, type); 117 /** Creates a sort, possibly in reverse, by terms in the given field with the 119 * @param field Name of field t 124 SortField(String field, int type, boolean reverse) argument 139 SortField(String field, FieldCache.Parser parser) argument 154 SortField(String field, FieldCache.Parser parser, boolean reverse) argument 173 SortField(String field, Locale locale) argument 183 SortField(String field, Locale locale, boolean reverse) argument 193 SortField(String field, FieldComparatorSource comparator) argument 203 SortField(String field, FieldComparatorSource comparator, boolean reverse) argument 221 initFieldType(String field, int type) argument [all...] |
H A D | NumericRangeFilter.java | 37 * accepts all documents whose float valued "weight" field 57 public static NumericRangeFilter<Long> newLongRange(final String field, final int precisionStep, argument 61 NumericRangeQuery.newLongRange(field, precisionStep, min, max, minInclusive, maxInclusive) 72 public static NumericRangeFilter<Long> newLongRange(final String field, argument 76 NumericRangeQuery.newLongRange(field, min, max, minInclusive, maxInclusive) 87 public static NumericRangeFilter<Integer> newIntRange(final String field, final int precisionStep, argument 91 NumericRangeQuery.newIntRange(field, precisionStep, min, max, minInclusive, maxInclusive) 102 public static NumericRangeFilter<Integer> newIntRange(final String field, argument 106 NumericRangeQuery.newIntRange(field, min, max, minInclusive, maxInclusive) 119 public static NumericRangeFilter<Double> newDoubleRange(final String field, fina argument 136 newDoubleRange(final String field, Double min, Double max, final boolean minInclusive, final boolean maxInclusive ) argument 153 newFloatRange(final String field, final int precisionStep, Float min, Float max, final boolean minInclusive, final boolean maxInclusive ) argument 170 newFloatRange(final String field, Float min, Float max, final boolean minInclusive, final boolean maxInclusive ) argument [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/grouping/distributed/command/ |
H A D | SearchGroupsFieldCommand.java | 40 private SchemaField field; field in class:SearchGroupsFieldCommand.Builder 44 public Builder setField(SchemaField field) { argument 45 this.field = field; 60 if (field == null || groupSort == null || topNGroups == null) { 64 return new SearchGroupsFieldCommand(field, groupSort, topNGroups); 69 private final SchemaField field; field in class:SearchGroupsFieldCommand 75 private SearchGroupsFieldCommand(SchemaField field, Sort groupSort, int topNGroups) { argument 76 this.field = field; [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/aggregator/association/ |
H A D | AssociationFloatSumAggregator.java | 35 protected final String field; field in class:AssociationFloatSumAggregator 40 this(CategoryListParams.DEFAULT_TERM.field(), reader, sumArray); 43 public AssociationFloatSumAggregator(String field, IndexReader reader, float[] sumArray) throws IOException { argument 44 this.field = field; 45 associationsPayloadIterator = new AssociationsPayloadIterator(reader, field); 62 return that.field.equals(field) && that.sumArray == sumArray; 67 return field.hashCode();
|
H A D | AssociationIntSumAggregator.java | 35 protected final String field; field in class:AssociationIntSumAggregator 40 this(CategoryListParams.DEFAULT_TERM.field(), reader, sumArray); 43 public AssociationIntSumAggregator(String field, IndexReader reader, int[] sumArray) throws IOException { argument 44 this.field = field; 45 associationsPayloadIterator = new AssociationsPayloadIterator(reader, field); 62 return that.field.equals(field) && that.sumArray == sumArray; 67 return field.hashCode();
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/ |
H A D | LuceneDictionary.java | 31 * Lucene Dictionary: terms taken from the given field 42 private String field; field in class:LuceneDictionary 44 public LuceneDictionary(IndexReader reader, String field) { argument 46 this.field = StringHelper.intern(field); 61 termsEnum = reader.terms(new Term(field, "")); 63 if (term == null || term.field() != field) { 80 if (actualTerm == null || actualTerm.field() != field) { [all...] |
/lucene-3.6.0/lucene/contrib/join/src/java/org/apache/lucene/search/join/ |
H A D | TermsQuery.java | 31 * A query that has an array of terms from a specific field. This query will match documents have one or more terms in 32 * the specified field that match with the terms specified in the array. 69 private final String field; field in class:TermsQuery 72 * @param field The field that should contain terms that are specified in the previous parameter 75 TermsQuery(String field, Set<String> terms) { argument 76 this.field = field; 86 TermEnum termEnum = reader.terms(new Term(field, terms[0])); 88 if (firstTerm == null || field ! 104 private final String field; field in class:TermsQuery.SeekingTermsEnum 110 SeekingTermsEnum(TermEnum termEnum, Term firstTerm, String field, String[] terms) argument [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/ |
H A D | NumericQueryNode.java | 29 * This query node represents a field query that holds a numeric value. It is 42 private CharSequence field; field in class:NumericQueryNode 47 * Creates a {@link NumericQueryNode} object using the given field, 51 * @param field the field associated with this query node 55 public NumericQueryNode(CharSequence field, Number value, argument 61 setField(field); 67 * Returns the field associated with this node. 69 * @return the field associated with this node 72 return this.field; [all...] |