Hi Ramzi,

First thanks for your comments.

Regarding your line
     parameters.set("qt", /suggest")

My understanding is that "suggest" has to be a handler defined in
SolrConfig.xml. And the handler needs to have one of more defined (search)
component(s).  The search component syntax needs dictionary (or file) or a
indexed field to search on.   In my case, I am going with the indexed
fields.  

As I stated in my post, the issue I have is that I have a list of fields
that user configured at run time (which are defined as dynamic fields).
Whenever user configured a field to be used for autosuggestion, it will
trigger indexing.  Later on, when user search in the configured field, he
expects the auto completion feature while he types.  Since the fields are
configured at run time, I can not defined Search components for those fields
in advance unless the Search component syntax support dynamic fields,
something like f_*_auto. But unfortunately I didn't see anything like that. 

My first question is how to make dynamic field works in SearchComponent
definitions.  If this is impossible, the second question  would be how to
create the handler on the fly when user configure a field to be auto
completion. 

Thanks,
Simon



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-on-Dynamic-fields-tp4165270p4165329.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to