on 09-18-2008 2:53 PM
hi,
I want to add additional Quicksearch attributes to my catalog (ECO 5.0 for CRM and TREX 7.1). Where do I have to configure the additional attributes. I saw during debugging that the catalogengine loads a XML file for configuration but I do not know where to find the file.
Regards
Michael
Hi,
Yes, you have to modify this class only.
CatalogFilterFactory fact = CatalogFilterFactory.getInstance();
IQueryStatement queryStmt = theCatalog.getCatalog().createQueryStatement();
IFilter attr = fact.createAttrEqualValue("OBJECT_ID", "VALUE");
IFilter zattr = fact.createAttrFuzzyValue("Z_Attribute", "ZVALUE");
IFilter expression = fact.createAnd(attr,zattr);
queryStmt.setStatement(expression, null, null);
Just follow the above code to add new attribute to search for the statement.
Regards,
Sateesh Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Product ID and Product Name are the standard atrributes in Quick Search.
The logic is PRODUCT ID eq <quicksearchstring> or PRODUCT NAME cs <quicksearchstring>.
The product name search is clumsy simple CS substring logic with out any embedded wildcard. The search is case insensitive.
I have not tested the Product ID containing special characters or alpha. The quick search
Easwar Ram
Hi,
Do you mean the Z attributes in B2B?.
These attributes are added automatically when ever you create them and add it to the product.
But for quick search you can even add them manually, and you need to change Java class also.
Regards,
Sateesh Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
in standard the quicksearch only uses the attributes object_id and the productname but we have added an additional attribute (technical type) and now we want to use also this attribute in the quicksearch.
Which java class do I have to change? Do you mean the CatalogSearchAction?
Regards
Michael
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.