> Got it. All good now. I will either use the update
> processor, or I may
> modify the query in data import handler to get these values
> pre-populated
> from the database. Thanks for your help. I appreciate it!
Oh, I didn't know that you are using DIH. If thats the case, you can populate
those
our help. I appreciate it!
--
View this message in context:
http://old.nabble.com/Expanding-synonyms-for-both-facets-and-response-results-tp26912229p26920160.html
Sent from the Solr - User mailing list archive at Nabble.com.
> response result still shows 100, not "One
> Bedroom Apartment".
>
There is a misunderstanding here. response result will always show
original value of the field (that you post while adding), there is no way to
see synonym in this section. Only way to change it before analysis phase is to
" );
> doc.addField( "apt_type_it", "" );
> }
> }
>
> // pass it up the chain
> super.processAdd(cmd);
> }
>
This actually worked well. I may go down this path unless we find a solution
to the synonym issue.
Thanks!
--
View this message in context:
http://old.nabble.com/Expanding-synonyms-for-both-facets-and-response-results-tp26912229p26919430.html
Sent from the Solr - User mailing list archive at Nabble.com.
hree tokens?
>
>
It is a single token.
response result still shows 100, not "One Bedroom Apartment".
Thanks!
--
View this message in context:
http://old.nabble.com/Expanding-synonyms-for-both-facets-and-response-results-tp26912229p26919385.html
Sent from the Solr - User mailing list archive at Nabble.com.
> >
> >
> >
> > name="apt_type_en">One Bedroom Apartment
> >
> >
> >
> > name="apt_type_en">One Bedroom Apartment
> >
> >
> >
> >
> >
> >
> >
> >
> > name="apt_type_en">
> >
> 2
> >
> >
> >
> >
> >
I
> Ok, I must be missing something very obvious. My
> analysis.jsp page shows the
> entry just fine:
>
> I enter:
> Field (name): apt_type_en
> Field value (index): 100
> Analyze
>
> I get
> "Index Analyzer
> 100
> One Bedroom Apartment"
>
> "One Bedroom Apartment" is the expected entry.
>
>
combination does not give me the desired result after reindexing
and restarting tomcat.
Thank you for helping me out on this one.
--
View this message in context:
http://old.nabble.com/Expanding-synonyms-for-both-facets-and-response-results-tp26912229p26918019.html
Sent from the Solr - User mailing list archive at Nabble.com.
> >
> > In db_apartment_types_en.txt file if you use comma (,)
> instead of =>
> > faceting will return both:
> >
> >
> >
>
> >
> 2
> >
> 2
> >
>
> >
> >
> >
>
> I tried this but no luck.
Did you restart tomcat and re-index?
context:
http://old.nabble.com/Expanding-synonyms-for-both-facets-and-response-results-tp26912229p26915392.html
Sent from the Solr - User mailing list archive at Nabble.com.
> I have used synonyms to provide translation from my keys to
> appropriate
> English text. When using facets, the field appropriately
> displays the
> synonym field:
>
>
> 2
>
>
> but my result response does not translate the ID to text:
>
>
> name="apt_type_e
pes_en.txt
===db_apartment_types_en.txt
#this is the synonym file which is supposed to expand IDs to English text.
100=>One\ Bedroom\ Apartment
200=>Two\ Bedroom\ Apartment
--
View this message in context:
http://old.nabble.com/Expanding-synonyms-for-both-facets-and-response-results-tp26912229p2691222
12 matches
Mail list logo