lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mysurf Mail <stammail...@gmail.com>
Subject Re: filter query result by user
Date Tue, 23 Jul 2013 13:32:49 GMT
But I dont want it to be searched.on

lets say the user name is "giraffe"
I do want to filter to be "where created by = giraffe"

but when the user searches his name, I will want only documents with name
"Giraffe".
since it is indexed, wouldn't it return all rows created by him?
Thanks.



On Tue, Jul 23, 2013 at 4:28 PM, Raymond Wiker <rwiker@gmail.com> wrote:

> Simple: the field needs to be "indexed" in order to search (or filter) on
> it.
>
>
> On Tue, Jul 23, 2013 at 3:26 PM, Mysurf Mail <stammailbox@gmail.com>
> wrote:
>
> > I want to restrict the returned results to be only the documents that
> were
> > created by the user.
> > I then load to the index the createdBy attribute and set it to index
> > false,stored="true"
> >
> >     <field name="CreatedBy" type="string" indexed="false" stored="true"
> > required="true"/>
> >
> > then in the I want to filter by "CreatedBy" so I use the dashboard, check
> > edismax and add
> > I check edismax and add CreatedBy:user1 to the qf field.
> >
> >
> > the result query is
> >
> >     http://
> > ....:8983/solr/vault/select?q=*%3A*&defType=edismax&qf=CreatedBy%3Auser1
> >
> > Nothing is filtered. all rows returned.
> > What was I doing wrong?
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message