5

I want to filter the auto complete results from my suggester Lets say I have a book table

Table (Id Guid, BookName String, BookOwner id) 

I want each user to get a list to autocomplete from its own books.

I want to add something like the

http://.../solr/vault/suggest?q=c&fq=BookOwner:3

This doesnt work. What other ways do I have to implement it?

Bick
  • 17,833
  • 52
  • 146
  • 251

2 Answers2

0

Solr Spell Check is a completely different index and it stores just the information from the field marked for Spell suggestion.
It does not have any reference of the document from which it had originated from.
So the filter query with suggester would not work.

Jayendra
  • 52,349
  • 4
  • 80
  • 90
  • Thanks. I am guessing my request is pretty popular. is there another way to implement it? – Bick Sep 10 '13 at 11:36
  • If you using a spell suggestion for Did you mean then i dont have much idea. If you providing a type ahead facet.prefix can probably aid you. – Jayendra Sep 10 '13 at 11:44
0

The way you wanted it, using fq is working fine in the version Solr 6.4.1 (and probably higher versions too)

http://.../solr/vault/suggest?q=c&fq=BookOwner:3
monad
  • 125
  • 1
  • 7