Subversion Repositories SmartDukaan

Rev

Rev 6656 | Rev 8261 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6656 Rev 6842
Line 31... Line 31...
31
import java.util.ArrayList;
31
import java.util.ArrayList;
32
import java.util.HashMap;
32
import java.util.HashMap;
33
import java.util.List;
33
import java.util.List;
34
import java.util.Map;
34
import java.util.Map;
35
 
35
 
36
import javax.xml.transform.TransformerFactory;
-
 
37
import javax.xml.transform.Transformer;
36
import javax.xml.transform.Transformer;
-
 
37
import javax.xml.transform.TransformerFactory;
38
import javax.xml.transform.stream.StreamResult;
38
import javax.xml.transform.stream.StreamResult;
39
import javax.xml.transform.stream.StreamSource;
39
import javax.xml.transform.stream.StreamSource;
40
 
40
 
41
import org.apache.commons.lang.StringEscapeUtils;
41
import org.apache.commons.lang.StringEscapeUtils;
42
import org.apache.commons.lang.StringUtils;
42
import org.apache.commons.lang.StringUtils;
Line 537... Line 537...
537
			List<Long>facetFeatureIds = new ArrayList<Long>();
537
			List<Long>facetFeatureIds = new ArrayList<Long>();
538
			facetFeatureIds.add(Utils.BRAND_FEATURE_DEFINITION_ID);
538
			facetFeatureIds.add(Utils.BRAND_FEATURE_DEFINITION_ID);
539
			facetFeatureIds.add(Utils.MAIN_CAT_FEATURE_DEFINITION_ID);
539
			facetFeatureIds.add(Utils.MAIN_CAT_FEATURE_DEFINITION_ID);
540
			facetFeatureIds.add(Utils.SUB_CAT_FEATURE_DEFINITION_ID);
540
			facetFeatureIds.add(Utils.SUB_CAT_FEATURE_DEFINITION_ID);
541
			facetFeatureIds.add(Utils.PRICE_FEATURE_DEFINITION_ID);
541
			facetFeatureIds.add(Utils.PRICE_FEATURE_DEFINITION_ID);
-
 
542
			facetFeatureIds.add(Utils.TAG_FEATURE_DEFINITION_ID);
-
 
543
			
542
			String propertiesXMLSnippetsStr = this.getPropertiesXMLSnippet(expEntity, facetFeatureIds, 2);
544
			String propertiesXMLSnippetsStr = this.getPropertiesXMLSnippet(expEntity, facetFeatureIds, 2);
543
			entityXMLSnippets.add(propertiesXMLSnippetsStr);
545
			entityXMLSnippets.add(propertiesXMLSnippetsStr);
544
			entityXMLSnippets.add(this.xmlIndentation[1] + "</Entity>");
546
			entityXMLSnippets.add(this.xmlIndentation[1] + "</Entity>");
545
			System.out.println(entityXMLSnippets);
547
			System.out.println(entityXMLSnippets);
546
			irDataXMLSnippets.addAll(entityXMLSnippets);
548
			irDataXMLSnippets.addAll(entityXMLSnippets);
Line 718... Line 720...
718
				// Exclude those who are already covered as facets
720
				// Exclude those who are already covered as facets
719
				// and the ones that are marked false for indexing
721
				// and the ones that are marked false for indexing
720
				if(facetFeatureIDs.contains(featureDefID) || !expFeature.getFeatureDefinition().isIndexed()) {
722
				if(facetFeatureIDs.contains(featureDefID) || !expFeature.getFeatureDefinition().isIndexed()) {
721
					continue;
723
					continue;
722
				}
724
				}
723
		
-
 
724
				if(!expFeature.getFeatureDefinition().isIndexed()){
-
 
725
					System.out.println("Hello");
-
 
726
				}
725
				
727
				List<ExpandedBullet> expBullets = 
726
				List<ExpandedBullet> expBullets = 
728
					expFeature.getExpandedBullets();
727
					expFeature.getExpandedBullets();
729
				
728
				
730
				if(expBullets == null) {
729
				if(expBullets == null) {
731
					continue;
730
					continue;