Package org.wijiscommons.ssaf.process.solr

Examples of org.wijiscommons.ssaf.process.solr.SSAFSolrFieldTypeEnum


            // Get Pointer Items and add to SolrInputDocument
            for (PointerItem pointerItem : pointerItemList)
            {

                SSAFSolrFieldTypeEnum fieldType =
                    fieldMapping.get(pointerItem.getItemName());

                Boolean isIndexed = null;

                if (fieldType != null)
                {
                    isIndexed = fieldType.isIndexed();
                }

                if (isIndexed == null)
                {
                    throw new SSAFSolrException("Pointer item, "
                            + pointerItem.getItemName()
                            + ", is not defined in semantics");
                }
               
                if (Boolean.valueOf(isIndexed))
                {

                    DataType dataType =
                        DataType.fromValue(fieldType.getDataType());

                    String fieldName =
                        pointerItem.getItemName() + "_" + dataType.value();

                    String pointerValue = "";
View Full Code Here


            if (StringUtils.isNotBlank(pointerName)
                    && StringUtils.isNotBlank(pointerValue))
      {
         
          SSAFSolrFieldTypeEnum fieldType =
                    fieldMapping.get(pointerName);

                if (fieldType != null && fieldType.isIndexed())
                {
                    DataType dataType =
                        DataType.fromValue(fieldType.getDataType());

                    String name =
                        searchItem.getItemName() + "_" + dataType.value();

                    String value = this.getPointerValue(pointerValue, dataType);
View Full Code Here

            String sortBy = sort.getSortBy();
            String sortByResolved = null;
            if (sortBy != null)
            {
                SSAFSolrFieldTypeEnum fieldType = fieldMapping.get( sortBy );

                if (fieldType != null && fieldType.isIndexed())
                {
                    DataType dataType = DataType.fromValue( fieldType
                            .getDataType() );

                    sortByResolved = sortBy + "_" + dataType.value();

                }
View Full Code Here

TOP

Related Classes of org.wijiscommons.ssaf.process.solr.SSAFSolrFieldTypeEnum

Copyright © 2018 www.massapicom. 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.