$doc->addField ($key, $value);
}
$solr->addDocument ($doc, false, 1000);
}
sleep (3);
}
/// QUERY
$query = new SolrQuery();
$query->setQuery('title:"facebook" and subject:"java"');
$q
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
>
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
,
> 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
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
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
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?
--
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