Re: query bag of word with negation

2018-04-22 Thread Erick Erickson
rg/solr/guide/6_6/other-parsers.html#OtherParsers- >> ComplexPhraseQueryParser >> >> Regards, >> Markus >> >> >> >> -Original message----- >> > From:Nicolas Paris >> > Sent: Sunday 22nd April 2018 20:04 >> > To: solr-user@luc

Re: query bag of word with negation

2018-04-22 Thread Nicolas Paris
egards, > Markus > > > > -Original message- > > From:Nicolas Paris > > Sent: Sunday 22nd April 2018 20:04 > > To: solr-user@lucene.apache.org > > Subject: query bag of word with negation > > > > Hello > > > > I wonder if there i

Re: query bag of word with negation

2018-04-22 Thread Nicolas Paris
1. Query terms containing other than just letters or digits may be placed >> within double quotes so that those other characters do not separate a term >> into many terms. A dot (period) and white space are neither letter nor >> digit. Examples: "Now is the time for all good men" (spaces, quote

RE: query bag of word with negation

2018-04-22 Thread Markus Jelsma
pache.org > Subject: query bag of word with negation > > Hello > > I wonder if there is a plain text query syntax to say: > give me all document that match: > > wonderful pizza NOT peperoni > > all those in a 5 distance word bag > then > > pizza are won

Re: query bag of word with negation

2018-04-22 Thread Joe Doupnik
On 22/04/2018 19:26, Joe Doupnik wrote: On 22/04/2018 19:04, Nicolas Paris wrote: Hello I wonder if there is a plain text query syntax to say: give me all document that match: wonderful pizza NOT peperoni all those in a 5 distance word bag then pizza are wonderful -> would match I made a won

Re: query bag of word with negation

2018-04-22 Thread Joe Doupnik
On 22/04/2018 19:04, Nicolas Paris wrote: Hello I wonder if there is a plain text query syntax to say: give me all document that match: wonderful pizza NOT peperoni all those in a 5 distance word bag then pizza are wonderful -> would match I made a wonderful pasta and pizza -> would match Pep

query bag of word with negation

2018-04-22 Thread Nicolas Paris
Hello I wonder if there is a plain text query syntax to say: give me all document that match: wonderful pizza NOT peperoni all those in a 5 distance word bag then pizza are wonderful -> would match I made a wonderful pasta and pizza -> would match Peperoni pizza are so wonderful -> would not ma

RE: negation search help

2016-11-23 Thread Allison, Timothy B.
addons%7C6.3-0.1%7Cpom -Original Message- From: Alexandre Rafalovitch [mailto:arafa...@gmail.com] Sent: Wednesday, November 23, 2016 10:03 AM To: solr-user Subject: Re: negation search help Well, then 'no' becomes a signal token. So, the question is how many tokens after that

Re: negation search help

2016-11-23 Thread Rafa Haro
Hi Hem, The negation detection problem within the clinical or medical context has been tackled for many researchers. At https://github.com/chapmanbe/negex you can find different implementations using different approaches. I have not tested all of them, but I have widely use this concrete

Re: negation search help

2016-11-23 Thread Alessandro Benedetti
I add to the thread a friend of mine, Rafa just presented at the Apachecon a medical system which deal exactly with a negation engine ( he will publish the slides soon) Hope it helps ! Cheers On Wed, Nov 23, 2016 at 3:03 PM, Alexandre Rafalovitch wrote: > Well, then 'no' bec

Re: negation search help

2016-11-23 Thread Alexandre Rafalovitch
Well, then 'no' becomes a signal token. So, the question is how many tokens after that it affects in its circle of negation? You could probably use something like https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-SurroundQueryParser to say (if user said

RE: negation search help

2016-11-23 Thread Hem Naidu
--- From: Alessandro Benedetti [mailto:benedetti.ale...@gmail.com] Sent: Wednesday, November 23, 2016 8:22 AM To: solr-user@lucene.apache.org Subject: Re: negation search help Now that I read better, do you mean that at indexing time those negations must be recognized, in the way that they are no match ? Cheers

Re: negation search help

2016-11-23 Thread Alessandro Benedetti
Now that I read better, do you mean that at indexing time those negations must be recognized, in the way that they are no match ? Cheers On Wed, Nov 23, 2016 at 2:20 PM, Alessandro Benedetti < benedetti.ale...@gmail.com> wrote: > Hi Hem, > are you expecting Solr to parse your natural language qu

Re: negation search help

2016-11-23 Thread Alessandro Benedetti
Hi Hem, are you expecting Solr to parse your natural language query out of the box ? Are you using any custom query parser ? If not, you need to follow the lucene Syntax to define engative queries. And be careful to the edge cases [1] . Cheers [1] https://wiki.apache.org/solr/NegativeQueryProbl

Re: negation search help

2016-11-23 Thread Hem Naidu
Alex Whenever the keywords or sentence followed by "no", "not", etc should be excluded from the search results. Does solr support this feature? Thanks Sent from my iPhone > On Nov 23, 2016, at 12:09 AM, Alexandre Rafalovitch > wrote: > > How do you _know_ it is not 'apparent' ? Is it beca

Re: negation search help

2016-11-22 Thread Alexandre Rafalovitch
How do you _know_ it is not 'apparent' ? Is it because it is preceded by the keyword 'no'? Just that keyword? At what maximum distance? Regards, Alex On 23 Nov 2016 2:59 PM, "Hem Naidu" wrote: > Gurus, > > I am new to Solr, I have a requirement to index entire pdf/word documents > using Solr

negation search help

2016-11-22 Thread Hem Naidu
Gurus, I am new to Solr, I have a requirement to index entire pdf/word documents using Solr Tika. Which was successful and able to get the search results displayed. Now I need to fine tune the results or adjust index so the negative statements should be filtered out the results like my input text

Re: Negation words

2013-08-19 Thread Jack Krupansky
:38 AM To: solr-user@lucene.apache.org Subject: Negation words I am searching with a keyword and if that keyword is attached to a negation(not, could not and etc) in the document that document should not be matched. For example I have a document text like "I have not wheezed since I have be

Re: Negation words

2013-08-19 Thread Raymond Wiker
t; wrote: > I am searching with a keyword and if that keyword is attached to a > negation(not, could not and etc) in the document that document should not > be > matched. > > For example I have a document text like "I have not wheezed since I have > been taking Spiriva.&quo

Negation words

2013-08-19 Thread venkatesham.gu...@igate.com
I am searching with a keyword and if that keyword is attached to a negation(not, could not and etc) in the document that document should not be matched. For example I have a document text like "I have not wheezed since I have been taking Spiriva." I am searching with a keyword "

Re: Pattern Tokenizer Factory not working with negation regular expression

2013-04-17 Thread meghana
April 17, 2013 7:58 AM > To: > solr-user@.apache > Subject: Pattern Tokenizer Factory not working with negation regular > expression > > Hi, > > I need my tokenizer factory , to split on everything expect numbers , > letters , '&' , ':' and sing

Re: Pattern Tokenizer Factory not working with negation regular expression

2013-04-17 Thread Jack Krupansky
t: Pattern Tokenizer Factory not working with negation regular expression Hi, I need my tokenizer factory , to split on everything expect numbers , letters , '&' , ':' and single quote character. I use 'PatternTokenizerFactory' as below, but, its spiting tokens by

Pattern Tokenizer Factory not working with negation regular expression

2013-04-17 Thread meghana
n anybody help me on this?? Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Pattern-Tokenizer-Factory-not-working-with-negation-regular-expression-tp4056653.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to combine Date range query with negation query

2013-03-10 Thread Jack Krupansky
Geek Sent: Sunday, March 10, 2013 7:06 AM To: solr user Subject: How to combine Date range query with negation query Hi All, I'm trying to run a query against the following fields: default="unset" />and stored="true"/> against For majority of the documents the aut

How to combine Date range query with negation query

2013-03-10 Thread A Geek
Hi All, I'm trying to run a query against the following fields: and against For majority of the documents the author_location is default i.e. "unset" . I want to run a query where the author_location has got some value other than "unset" and the created_at field is greater a given t

Re: Problem with query negation

2012-05-18 Thread Ramprakash Ramamoorthy
On Fri, May 18, 2012 at 7:26 PM, Ahmet Arslan wrote: > > > I don't think request handler should be a problem. I > > have just used the *q > > *parameter as follows. > > > > String q = params.get(CommonParams.Q); > > IndexSchema schema = req.getSchema(); > > Query query = new QueryParsing().parseQ

Re: Problem with query negation

2012-05-18 Thread Ahmet Arslan
> > I don't think request handler should be a problem. I > have just used the *q > *parameter as follows. > > String q = params.get(CommonParams.Q); > IndexSchema schema = req.getSchema(); > Query query = new QueryParsing().parseQuery(q, schema); > > Hope there shouldn't be a problem with the abo

Re: Problem with query negation

2012-05-18 Thread Ramprakash Ramamoorthy
On Fri, May 18, 2012 at 6:20 PM, Ahmet Arslan wrote: > > I am using the standard LuceneQParserPlugin and I have a > > custom request > > handler. I use solr 3.5 > > I would test the same query with standard request handler. May be > something is your custom request handler? > > I don't think requ

Re: Problem with query negation

2012-05-18 Thread Ahmet Arslan
> I am using the standard LuceneQParserPlugin and I have a > custom request > handler. I use solr 3.5 I would test the same query with standard request handler. May be something is your custom request handler? &debugQuery=on would help too.

Re: Problem with query negation

2012-05-18 Thread Ramprakash Ramamoorthy
On Fri, May 18, 2012 at 6:03 PM, Ahmet Arslan wrote: > > > Why don't you just use /solr/select/?q=-HOSTID:302 > > > > > > > Tried the same right at start, but never worked :( > > q=-HOSTID:302 and q=+*:* -HOSTID:302 should return same result set. > Which solr version and query parser are you usin

Re: Problem with query negation

2012-05-18 Thread Ahmet Arslan
> > Why don't you just use /solr/select/?q=-HOSTID:302 > > > > Tried the same right at start, but never worked :( q=-HOSTID:302 and q=+*:* -HOSTID:302 should return same result set. Which solr version and query parser are you using?

Re: Problem with query negation

2012-05-18 Thread Ramprakash Ramamoorthy
On Fri, May 18, 2012 at 5:03 PM, Ahmet Arslan wrote: > > I am trying the following query and get only zero results (I > > am supposed to > > get 10 results according to my dataset) > > > > *http://mymachine:8983/solr/select/?q=-(HOSTID:302)* > > > > I also tried the below query and got zero resul

Re: Problem with query negation

2012-05-18 Thread Ahmet Arslan
> I am trying the following query and get only zero results (I > am supposed to > get 10 results according to my dataset) > > *http://mymachine:8983/solr/select/?q=-(HOSTID:302)* > > I also tried the below query and got zero results yet > again. > > *http://mymachine:8983/solr/select/?q=NOT(HOST

combining negation in query

2008-11-07 Thread smadhu
If I have a field with value "foo blah blah blah bar" and "foo blah blah blah". I want to be abe to find documents with "foo" NOT "bar" within 5 token positions. Is that possible? -- View this message in context: http://www.nabble.com/combining-negatio

Re: negation

2008-02-13 Thread alexander lind
I think I will try a hybrid version. One that uses my simple negation for newly joined campaigns, and uses your method to filter out campaigns joined longer ago. A cron:ed script will run every night and add all new user_id:s to the appropriate campaigns. That way I don't have to re-

Re: negation

2008-02-13 Thread Rachel McConnell
We do something similar in a different context. I don't know if our > > way is necessarily better, but it would work like this: > > > > 1. add a field to campaign called something like enteredUsers > > 2. once a user adds a campaign, update the campaign, adding a valu

Re: negation

2008-02-13 Thread alexander lind
that user to enteredUsers 3. the negation can now be done by excluding the user's unique id from the enteredUsers field, instead of excluding all the user's campaigns The downside is it will increase the number of your commits, which may or may not be OK. Rachel On 2/13/08, alexand

Re: negation

2008-02-13 Thread Rachel McConnell
. the negation can now be done by excluding the user's unique id from the enteredUsers field, instead of excluding all the user's campaigns The downside is it will increase the number of your commits, which may or may not be OK. Rachel On 2/13/08, alexander lind <[EMAIL PROTECTED

negation

2008-02-13 Thread alexander lind
gn to ever show up again for that particular user. After a while, a user can have built up a list of say 200 campaigns that he has joined, and hence should never see in any search results again. I know this functionality could be achieved by simply building a longer and longer negation