You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ankit Bhatnagar <ab...@vantage.com> on 2009/10/30 15:26:42 UTC
Solr YUI autocomplete
Hi Guys,
I have question regarding - how to specify the
I am using YUI autocomplete widget and it expects the JSONP response.
http://localhost:8983/solr/select/?q=monitor&version=2.2&start=0&rows=10&indent=on&wt=json&json.wrf=
I am not sure how should I specify the json.wrf=function
Thanks
Ankit
RE: Solr YUI autocomplete
Posted by Ankit Bhatnagar <ab...@vantage.com>.
Hey Eric,
That correct however it didn't work with YUI widget.
I changed my approach to use jQuery for now.
-Ankit
-----Original Message-----
From: Eric Pugh [mailto:epugh@opensourceconnections.com]
Sent: Monday, November 02, 2009 10:20 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr YUI autocomplete
It does, have you looked at
http://wiki.apache.org/solr/SolJSON?highlight=%28json%29#Using_Solr.27s_JSON_output_for_AJAX.
Also, in my book on Solr, there is an example, but using the jquery
autocomplete, which I think was answered earlier on the thread! Hope that
helps.
ANKITBHATNAGAR wrote:
>
>
> Does Solr supports JSONP (JSON with Padding) in the response?
>
> -Ankit
>
>
>
> -----Original Message-----
> From: Ankit Bhatnagar [mailto:abhatnagar@vantage.com]
> Sent: Friday, October 30, 2009 10:27 AM
> To: 'solr-user@lucene.apache.org'
> Subject: Solr YUI autocomplete
>
> Hi Guys,
>
> I have question regarding - how to specify the
>
> I am using YUI autocomplete widget and it expects the JSONP response.
>
> http://localhost:8983/solr/select/?q=monitor&version=2.2&start=0&rows=10&indent=on&wt=json&json.wrf=
>
> I am not sure how should I specify the json.wrf=function
>
> Thanks
> Ankit
>
>
--
View this message in context: http://old.nabble.com/JQuery-and-autosuggest-tp26130209p26157130.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr YUI autocomplete
Posted by Eric Pugh <ep...@opensourceconnections.com>.
It does, have you looked at
http://wiki.apache.org/solr/SolJSON?highlight=%28json%29#Using_Solr.27s_JSON_output_for_AJAX.
Also, in my book on Solr, there is an example, but using the jquery
autocomplete, which I think was answered earlier on the thread! Hope that
helps.
ANKITBHATNAGAR wrote:
>
>
> Does Solr supports JSONP (JSON with Padding) in the response?
>
> -Ankit
>
>
>
> -----Original Message-----
> From: Ankit Bhatnagar [mailto:abhatnagar@vantage.com]
> Sent: Friday, October 30, 2009 10:27 AM
> To: 'solr-user@lucene.apache.org'
> Subject: Solr YUI autocomplete
>
> Hi Guys,
>
> I have question regarding - how to specify the
>
> I am using YUI autocomplete widget and it expects the JSONP response.
>
> http://localhost:8983/solr/select/?q=monitor&version=2.2&start=0&rows=10&indent=on&wt=json&json.wrf=
>
> I am not sure how should I specify the json.wrf=function
>
> Thanks
> Ankit
>
>
--
View this message in context: http://old.nabble.com/JQuery-and-autosuggest-tp26130209p26157130.html
Sent from the Solr - User mailing list archive at Nabble.com.
RE: Solr YUI autocomplete
Posted by Ankit Bhatnagar <ab...@vantage.com>.
Hey Amit,
My index(ie Solr) was on different domain, so I can't use XHR(as XHR doesnot work with cross domain proxyless data fetch).
I tried using YUI's DS_ScriptNode but didn't work.
I completed my task by using jQuery and it worked well with solr.
-Ankit
-----Original Message-----
From: Amit Nithian [mailto:anithian@gmail.com]
Sent: Monday, November 02, 2009 1:00 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr YUI autocomplete
I've used the YUI auto complete (albeit not with Solr which shouldn't matter
here) and it should work with JSON. I did one that simply made XHR calls
over to a method on my server which returned pipe delimited text which
worked fine.
Are you using the XHR Data source and if so, what type are you telling it to
expect. One of the examples on the YUI site is text based and i'm sure you
can specify TYPE_JSON or JS_ARRAY too.
- Amit
On Fri, Oct 30, 2009 at 7:04 AM, Ankit Bhatnagar <ab...@vantage.com>wrote:
>
> Does Solr supports JSONP (JSON with Padding) in the response?
>
> -Ankit
>
>
>
> -----Original Message-----
> From: Ankit Bhatnagar [mailto:abhatnagar@vantage.com]
> Sent: Friday, October 30, 2009 10:27 AM
> To: 'solr-user@lucene.apache.org'
> Subject: Solr YUI autocomplete
>
> Hi Guys,
>
> I have question regarding - how to specify the
>
> I am using YUI autocomplete widget and it expects the JSONP response.
>
>
> http://localhost:8983/solr/select/?q=monitor&version=2.2&start=0&rows=10&indent=on&wt=json&json.wrf=
>
> I am not sure how should I specify the json.wrf=function
>
> Thanks
> Ankit
>
Re: Solr YUI autocomplete
Posted by Amit Nithian <an...@gmail.com>.
I've used the YUI auto complete (albeit not with Solr which shouldn't matter
here) and it should work with JSON. I did one that simply made XHR calls
over to a method on my server which returned pipe delimited text which
worked fine.
Are you using the XHR Data source and if so, what type are you telling it to
expect. One of the examples on the YUI site is text based and i'm sure you
can specify TYPE_JSON or JS_ARRAY too.
- Amit
On Fri, Oct 30, 2009 at 7:04 AM, Ankit Bhatnagar <ab...@vantage.com>wrote:
>
> Does Solr supports JSONP (JSON with Padding) in the response?
>
> -Ankit
>
>
>
> -----Original Message-----
> From: Ankit Bhatnagar [mailto:abhatnagar@vantage.com]
> Sent: Friday, October 30, 2009 10:27 AM
> To: 'solr-user@lucene.apache.org'
> Subject: Solr YUI autocomplete
>
> Hi Guys,
>
> I have question regarding - how to specify the
>
> I am using YUI autocomplete widget and it expects the JSONP response.
>
>
> http://localhost:8983/solr/select/?q=monitor&version=2.2&start=0&rows=10&indent=on&wt=json&json.wrf=
>
> I am not sure how should I specify the json.wrf=function
>
> Thanks
> Ankit
>
Solr YUI autocomplete
Posted by Ankit Bhatnagar <ab...@vantage.com>.
Does Solr supports JSONP (JSON with Padding) in the response?
-Ankit
-----Original Message-----
From: Ankit Bhatnagar [mailto:abhatnagar@vantage.com]
Sent: Friday, October 30, 2009 10:27 AM
To: 'solr-user@lucene.apache.org'
Subject: Solr YUI autocomplete
Hi Guys,
I have question regarding - how to specify the
I am using YUI autocomplete widget and it expects the JSONP response.
http://localhost:8983/solr/select/?q=monitor&version=2.2&start=0&rows=10&indent=on&wt=json&json.wrf=
I am not sure how should I specify the json.wrf=function
Thanks
Ankit