Re: PHP Remove From Index/Search By Fields

2009-04-13 Thread Johnny X
A further update on this is that (when 'Date' is searched using the same URL as posted in the previous message), whether Date is of type string or text, the full (exact) content of a field has to be searched to return a result. Why is this not the case with Content? I tried changing the default

Re: PHP Remove From Index/Search By Fields

2009-04-13 Thread Johnny X
Do you know the specific syntax when querying different fields? http://localhost:8080/solr/select/?q=Date:%222000%22&version=2.2&start=0&rows=10&indent=on doesn't appear to return anything when I post it in my browser, when it should, but (as before) if you change 'Date' to 'Content' it works! (

Re: PHP Remove From Index/Search By Fields

2009-04-13 Thread Erik Hatcher
On Apr 13, 2009, at 11:20 AM, Johnny X wrote: Also, in reference to the other question, I'm currently trying to edit the main search page to search multiple fields. Essentially, I detect if each field has been posted or not using: if ($_POST['FIELD'] != '') { $query = $query . '+FIELDNAME

Re: PHP Remove From Index/Search By Fields

2009-04-13 Thread Johnny X
Also, in reference to the other question, I'm currently trying to edit the main search page to search multiple fields. Essentially, I detect if each field has been posted or not using: if ($_POST['FIELD'] != '') { $query = $query . '+FIELDNAME:' . $_POST['FIELD']; } Once it's processed all the

Re: PHP Remove From Index/Search By Fields

2009-04-12 Thread Johnny X
Thanks for the reply Erik! Based on a previous page I used to return queries I've developed this code below for the page I need to do all of the above. CODE http://localhost:8080/solr/'); function request($reqData, $type){ $header[] = "Content-type: text/xml; charset=UTF-8"; $session

Re: PHP Remove From Index/Search By Fields

2009-04-12 Thread Erik Hatcher
On Apr 10, 2009, at 8:36 PM, Johnny X wrote: How could I write some code in PHP to place in a button to remove a returned item from the index? You can issue a delete command to Solr by simply doing a GET (or POST) to http://localhost:8983/solr/update?stream.body=%3Cdelete%3E%3Cid%3ESOMEID%