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 Christian Loock <ch...@vkf-renzel.de> on 2014/05/30 11:38:11 UTC
Block document for certain search words
Hi,
is there a way to block a document for being found when you search for a
certain way?
Cheers,
Christian
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
Re: Block document for certain search words
Posted by Erick Erickson <er...@gmail.com>.
Sure, boosts < 1 "de-boost" matches on those terms.
Best
Erick
P.S. Your use-case still isn't very clear, some examples would help.
On Fri, May 30, 2014 at 2:57 AM, Christian Loock <ch...@vkf-renzel.de> wrote:
> An alternative might be to drop down its relevancy for certain words.
> Would that be possible?
>
>
>
> On 30.05.2014 11:55, Christian Loock wrote:
>
>> Hi,
>>
>> well we have a product search which often will return products one might
>> not expect because they contain somesort of reference to other products.
>>
>> I want it to appear in the index, so it can be found in general, but I
>> dont want it to be found for certain search words.
>>
>>
>> On 30.05.2014 11:52, Jack Krupansky wrote:
>>
>>> Explain your use case a little more, but you can define terms as stop
>>> words with a stop filter, which means they won't appear in the index.
>>>
>>> -- Jack Krupansky
>>>
>>> -----Original Message----- From: Christian Loock
>>> Sent: Friday, May 30, 2014 5:38 AM
>>> To: solr-user@lucene.apache.org
>>> Subject: Block document for certain search words
>>>
>>> Hi,
>>>
>>> is there a way to block a document for being found when you search for a
>>> certain way?
>>>
>>> Cheers,
>>>
>>> Christian
>>>
>>>
>>
> --
> Christian Loock
> Web Developer
> Renzel Agentur
> www.renzel-agentur.de
>
>
Re: Block document for certain search words
Posted by Christian Loock <ch...@vkf-renzel.de>.
An alternative might be to drop down its relevancy for certain words.
Would that be possible?
On 30.05.2014 11:55, Christian Loock wrote:
> Hi,
>
> well we have a product search which often will return products one
> might not expect because they contain somesort of reference to other
> products.
>
> I want it to appear in the index, so it can be found in general, but I
> dont want it to be found for certain search words.
>
>
> On 30.05.2014 11:52, Jack Krupansky wrote:
>> Explain your use case a little more, but you can define terms as stop
>> words with a stop filter, which means they won't appear in the index.
>>
>> -- Jack Krupansky
>>
>> -----Original Message----- From: Christian Loock
>> Sent: Friday, May 30, 2014 5:38 AM
>> To: solr-user@lucene.apache.org
>> Subject: Block document for certain search words
>>
>> Hi,
>>
>> is there a way to block a document for being found when you search for a
>> certain way?
>>
>> Cheers,
>>
>> Christian
>>
>
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
Re: Block document for certain search words
Posted by Ahmet Arslan <io...@yahoo.com>.
Do these forbidden documents have 'certain search words' in them? May be KeepWordFilterFactory could help.
On Friday, May 30, 2014 12:57 PM, Christian Loock <ch...@vkf-renzel.de> wrote:
Hi,
well we have a product search which often will return products one might
not expect because they contain somesort of reference to other products.
I want it to appear in the index, so it can be found in general, but I
dont want it to be found for certain search words.
On 30.05.2014 11:52, Jack Krupansky wrote:
> Explain your use case a little more, but you can define terms as stop
> words with a stop filter, which means they won't appear in the index.
>
> -- Jack Krupansky
>
> -----Original Message----- From: Christian Loock
> Sent: Friday, May 30, 2014 5:38 AM
> To: solr-user@lucene.apache.org
> Subject: Block document for certain search words
>
> Hi,
>
> is there a way to block a document for being found when you search for a
> certain way?
>
> Cheers,
>
> Christian
>
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
Re: Block document for certain search words
Posted by Christian Loock <ch...@vkf-renzel.de>.
Hi,
well we have a product search which often will return products one might
not expect because they contain somesort of reference to other products.
I want it to appear in the index, so it can be found in general, but I
dont want it to be found for certain search words.
On 30.05.2014 11:52, Jack Krupansky wrote:
> Explain your use case a little more, but you can define terms as stop
> words with a stop filter, which means they won't appear in the index.
>
> -- Jack Krupansky
>
> -----Original Message----- From: Christian Loock
> Sent: Friday, May 30, 2014 5:38 AM
> To: solr-user@lucene.apache.org
> Subject: Block document for certain search words
>
> Hi,
>
> is there a way to block a document for being found when you search for a
> certain way?
>
> Cheers,
>
> Christian
>
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
Re: Block document for certain search words
Posted by Jack Krupansky <ja...@basetechnology.com>.
Explain your use case a little more, but you can define terms as stop words
with a stop filter, which means they won't appear in the index.
-- Jack Krupansky
-----Original Message-----
From: Christian Loock
Sent: Friday, May 30, 2014 5:38 AM
To: solr-user@lucene.apache.org
Subject: Block document for certain search words
Hi,
is there a way to block a document for being found when you search for a
certain way?
Cheers,
Christian
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de