Re: join and NOT together

2016-02-18 Thread Sergio García Maroto
HI Mikhail. Sorry for all the confusion This is the original query which doesn't work q=PersonName:peter AND {!type=join from=DocPersonID to=PersonID fromIndex=document v='(*:* -DocType:pdf)' } I figure out that negating outside the cross join query makes the trick for me. I take the negation ou

Re: join and NOT together

2016-02-17 Thread Mikhail Khludnev
Sergo, Please provide more debug output, I want to see how query was parsed. On Tue, Feb 16, 2016 at 1:20 PM, Sergio García Maroto wrote: > My debugQuery=true returns related to the NOT: > > 0.06755901 = (MATCH) sum of: 0.06755901 = (MATCH) MatchAllDocsQuery, > product of: 0.06755901 = queryNor

Re: join and NOT together

2016-02-16 Thread marotosg
Actually I was wrong this doesn't work. (-DocType:pdf) -- View this message in context: http://lucene.472066.n3.nabble.com/join-and-NOT-together-tp4257411p4257620.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: join and NOT together

2016-02-16 Thread Sergio García Maroto
My debugQuery=true returns related to the NOT: 0.06755901 = (MATCH) sum of: 0.06755901 = (MATCH) MatchAllDocsQuery, product of: 0.06755901 = queryNorm I tried changing v='(*:* -DocType:pdf)' to v='(-DocType:pdf)' and it worked. Anyone could explain the difference? Thanks Sergo On 15 February

Re: join and NOT together

2016-02-15 Thread Mikhail Khludnev
Hello Sergio, What debougQuery=true output does look like? On Mon, Feb 15, 2016 at 7:10 PM, marotosg wrote: > Hi, > > I am trying to solve an issue when doing a search joining two collections > and negating the cross core query. > > Let's say I have one collection person and another collection