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 Sadiki Latty <sl...@uottawa.ca> on 2018/01/08 21:12:17 UTC
Profanity
Hey
I would like to find a solution to flag (at index-time) profanity. Optimally, it would be good if it function similar to stopwords in the sense that I can have a predefined list that is read and if token is on the list that document is 'flagged' in a different field. Does anyone know of solution (outside of configuring my own). If none exists and I end up configuring my own would I be doing this in the updateprcoessor phase. I am still fairly new to Solr, but from what I've read, that seems to be the best place to look.
Thanks,
Sid
Re: Profanity
Posted by John Blythe <jo...@gmail.com>.
Gladly. Good luck!
On Mon, Jan 8, 2018 at 8:27 PM Sadiki Latty <sl...@uottawa.ca> wrote:
> Thanks for the feedback John,
>
> This is a genius idea if I don’t want to create my own processor. I could
> simply check that field for data for my reports. Either the field will have
> data or it won’t.
>
> Thanks
>
> Sid
>
> Sent from my iPhone
>
> > On Jan 8, 2018, at 4:38 PM, John Blythe <jo...@gmail.com> wrote:
> >
> > you could use the keepwords functionality. have a field that only keeps
> > profanity and then you can query against that field having its default
> > value vs. profane text
> >
> > --
> > John Blythe
> >
> >> On Mon, Jan 8, 2018 at 3:12 PM, Sadiki Latty <sl...@uottawa.ca> wrote:
> >>
> >> Hey
> >>
> >> I would like to find a solution to flag (at index-time) profanity.
> >> Optimally, it would be good if it function similar to stopwords in the
> >> sense that I can have a predefined list that is read and if token is on
> the
> >> list that document is 'flagged' in a different field. Does anyone know
> of
> >> solution (outside of configuring my own). If none exists and I end up
> >> configuring my own would I be doing this in the updateprcoessor phase.
> I am
> >> still fairly new to Solr, but from what I've read, that seems to be the
> >> best place to look.
> >>
> >>
> >> Thanks,
> >>
> >> Sid
> >>
>
--
John Blythe
Re: Profanity
Posted by Sadiki Latty <sl...@uottawa.ca>.
Thanks for the feedback John,
This is a genius idea if I don’t want to create my own processor. I could simply check that field for data for my reports. Either the field will have data or it won’t.
Thanks
Sid
Sent from my iPhone
> On Jan 8, 2018, at 4:38 PM, John Blythe <jo...@gmail.com> wrote:
>
> you could use the keepwords functionality. have a field that only keeps
> profanity and then you can query against that field having its default
> value vs. profane text
>
> --
> John Blythe
>
>> On Mon, Jan 8, 2018 at 3:12 PM, Sadiki Latty <sl...@uottawa.ca> wrote:
>>
>> Hey
>>
>> I would like to find a solution to flag (at index-time) profanity.
>> Optimally, it would be good if it function similar to stopwords in the
>> sense that I can have a predefined list that is read and if token is on the
>> list that document is 'flagged' in a different field. Does anyone know of
>> solution (outside of configuring my own). If none exists and I end up
>> configuring my own would I be doing this in the updateprcoessor phase. I am
>> still fairly new to Solr, but from what I've read, that seems to be the
>> best place to look.
>>
>>
>> Thanks,
>>
>> Sid
>>
Re: Profanity
Posted by John Blythe <jo...@gmail.com>.
you could use the keepwords functionality. have a field that only keeps
profanity and then you can query against that field having its default
value vs. profane text
--
John Blythe
On Mon, Jan 8, 2018 at 3:12 PM, Sadiki Latty <sl...@uottawa.ca> wrote:
> Hey
>
> I would like to find a solution to flag (at index-time) profanity.
> Optimally, it would be good if it function similar to stopwords in the
> sense that I can have a predefined list that is read and if token is on the
> list that document is 'flagged' in a different field. Does anyone know of
> solution (outside of configuring my own). If none exists and I end up
> configuring my own would I be doing this in the updateprcoessor phase. I am
> still fairly new to Solr, but from what I've read, that seems to be the
> best place to look.
>
>
> Thanks,
>
> Sid
>