Need help on this AND query, solr returning incorrect results?

2014-10-14 Thread Aaron Lewis
$doc->addField ($key, $value); } $solr->addDocument ($doc, false, 1000); } sleep (3); } /// QUERY $query = new SolrQuery(); $query->setQuery('title:"facebook" and subject:"java"'); $q

[RESOLVED] Re: Need help on this AND query, solr returning incorrect results?

2014-10-14 Thread Aaron Lewis
va > > assuming your default operator is "OR" > > Try it on the URL with &debug=query for a quick check of what the actual > query is after it's made it through all the parsing... > > Best, > Erick > > On Tue, Oct 14, 2014 at 7:46 PM, Aaron Lewis >

How does one specify which collections to use?

2014-10-15 Thread Aaron Lewis
Hi, I'm using PHP client here: http://php.net/manual/en/class.solrquery.php I couldn't figure out how to use "collection2" instead of "collection1", I don't see such options in constructor either. Anyone know that? -- Best Regards, Aaron Lewis - PGP: 0x13

[SOLVED] Re: How does one specify which collections to use?

2014-10-15 Thread Aaron Lewis
, > Matt > > On 15 October 2014 19:31, Aaron Lewis wrote: > >> Hi, >> >> I'm using PHP client here: >> http://php.net/manual/en/class.solrquery.php >> >> I couldn't figure out how to use "collection2" instead of >> &qu

Does the SolrQuery class support 'inc' command?

2014-10-15 Thread Aaron Lewis
tion should I use? I tried 'addField' but that would just override existing entry -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33

[SOLVED] Re: Does the SolrQuery class support 'inc' command?

2014-10-15 Thread Aaron Lewis
one option is that you could generate the atomic update XML in > code and send it via a raw request: > http://php.net/manual/en/solrclient.request.php > > Regards, > Matt > > On 15 October 2014 22:23, Aaron Lewis wrote: > >> Hi, >> >> I'm trying to

Does Solr support this?

2014-10-15 Thread Aaron Lewis
Hi, I'm trying to a "if first query is empty then do a second query", e.g if this returns no rows: title:"XX" AND subject:"YY" Then do a title:"XX" I can do that with two queries. But I'm wondering if I can merge them into a single one? --

How should one search on all fields? *:XX does not work

2014-10-15 Thread Aaron Lewis
Hi, I'm trying to match all fields, so I tried this: *:"XX" Is that a bad practice? It does seem to be supported either -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33