Re: Need help with auto-suggester

2017-04-15 Thread OTH
I see, thanks. So I"m just using a string field to store the JSON. On Sat, Apr 15, 2017 at 11:15 PM, Walter Underwood wrote: > Sorry, that was formatted. The quotes are actually escaped, like this: > > {"term":"microsoft office","weight":14,"payload":"{\"count\": >

Re: Need help with auto-suggester

2017-04-15 Thread Walter Underwood
Sorry, that was formatted. The quotes are actually escaped, like this: {"term":"microsoft office","weight":14,"payload":"{\"count\": 1534255, \"id\": \"microsoft office\"}”} wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Apr 15, 2017, at 10:40

Re: Need help with auto-suggester

2017-04-15 Thread Walter Underwood
JSON does not have a binary data type, so true BLOBs are not possible in JSON. Sorry, I wasn’t clear. The payload I use is JSON in a string. It looks like this: suggest: { skill_names_infix: { m: { numFound: 10, suggestions: [ { term: "microsoft office", weight: 14, payload: "{"count": 1534255,

Re: Need help with auto-suggester

2017-04-15 Thread OTH
Hi - just wondering, what would be the difference between using a blob / binary field to store the JSON rather than simply using a string field? Thanks On Sat, Apr 15, 2017 at 2:50 AM, Walter Underwood wrote: > We recently needed multiple values in the payload, so I put a

Re: Need help with auto-suggester

2017-04-14 Thread OTH
Great! That's what I was about to resort to do, but thanks for the confirmation! On Sat, Apr 15, 2017 at 2:50 AM, Walter Underwood wrote: > We recently needed multiple values in the payload, so I put a JSON blob in > there. It comes back as a string, so you have to

Re: Need help with auto-suggester

2017-04-14 Thread Walter Underwood
We recently needed multiple values in the payload, so I put a JSON blob in there. It comes back as a string, so you have to decode that JSON separately. Otherwise, it was a pretty clean solution. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Apr

Re: Need help with auto-suggester

2017-04-14 Thread OTH
Thanks, that works! But is it possible to have multiple payloadFields? On Sat, Apr 15, 2017 at 1:23 AM, Marek Tichy wrote: > Utilize the payload field. > > I don't need to search multiple fields; I need to search just one field > but > > get the corresponding values from

Re: Need help with auto-suggester

2017-04-14 Thread Marek Tichy
Utilize the payload field. > I don't need to search multiple fields; I need to search just one field but > get the corresponding values from another field as well. > I.e. if a user is searching for cities, I wouldn't need the countries to > also be searched. However, when the list of cities is

Re: Need help with auto-suggester

2017-04-14 Thread OTH
I don't need to search multiple fields; I need to search just one field but get the corresponding values from another field as well. I.e. if a user is searching for cities, I wouldn't need the countries to also be searched. However, when the list of cities is displayed, I need their corresponding

Re: Need help with auto-suggester

2017-04-13 Thread Binoy Dalal
You can create a copy field and copy to it from all the fields you want to retrieve the suggestions from and then use that field with the suggester. On Thu 13 Apr, 2017, 23:21 OTH, wrote: > Hello, > > I've followed the steps here to set up auto-suggest: >

Need help with auto-suggester

2017-04-13 Thread OTH
Hello, I've followed the steps here to set up auto-suggest: https://lucidworks.com/2015/03/04/solr-suggester/ So basically I configured the auto-suggester in solrconfig.xml, where I told it which field in my index needs to be used for auto-suggestion. The problem is: When the user searches in