corebos
corebos copied to clipboard
Product and service autocomplete: control the field in which to search and enable combining fields
Luke1982
@Luke1982
11:45
Something else I'd like to run by you. I'm getting some feedback from the product autocomplete. This company has products that are called '35' or '45' in some cases. This makes it very difficult for the autocomplete to search. I'd like to work on an enhancement that adds a field in products and services called 'searchcode'. In the realworld example we have products that have a brand of 'TECO' and a model (which becomes the 'name') of '35', but the autocomplete can't search that due to the minimum no. of characters and it's quite ambiguous. So what they do now is fill in 'TECO 35' in the name field, which results in some problems on PDF layouts (concatenating brand and model becomes 'TECO TECO 35'). How would you feel about the searchcode functionality or maybe even using the FieldInfo map to customize fields to search in?
Joe Bordes
@joebordes
12:47
doesn't the autocomplete map have an option to indicate the fields?
<searchfields>field1,field2,...,fieldn</searchfields>
maybe we could create a special map called InventoryAutocomplete
and define the fields and other search conditions there
if it doesn't exist we do what we do now
if it does, we adapt accordingly
(which is probably what you are already doing with mincharstosearch)
Luke1982
@Luke1982
13:05
Seems like a good idea. We also need to be able to define how we want to search the fields. If I remember correctly, the search now looks in each individual field but doesn't search in field combinations.
Joe Bordes
@joebordes
13:11
add a <searchcombined>fieldx,fieldy,...</searchcombined>??