suggester simply looks at the terms in the index and returns some of them,
it's not aware (that I know of) of which docs the terms came from, so I
suspect you're out of luck unless you do something custom. Although what
that would be eludes me...

Best
Erick


On Thu, Feb 7, 2013 at 4:12 AM, Niklas Langvig <niklas.lang...@globesoft.com
> wrote:

> Hi
> Can I get suggestions from certain documents the same way as if so a select
> i.e.
>
> http://localhost:8080/solr/select/?wt=json&json.wrf=jsonp1360226745999&q=(aField:testAND
>  text:"search for this")&rows=10
>
> where the document field "aField" must contain "test"
> but
>
> http://localhost:8080/solr/suggest/?wt=json&json.wrf=jsonp1360226745999&q=(aField:testAND
>  text:"search for this")&rows=10
> doesn't work I still get suggestions even if there is no document with the
> field "aField" containing "test"
>
> So depending on for example who is using the suggest I want to limit what
> solr will suggest
>
> thanks
> /Niklas
>
>

Reply via email to