Re: PHP Remove From Index/Search By Fields

2009-04-13 Thread Johnny X
> that's the >>> only default field? >> >> You'll need to read up on Lucene/Solr query parser syntax to be able >> to build useful queries programatically like that: >> <http://wiki.apache.org/solr/SolrQuerySyntax >> > Your syntax above is n

Re: PHP Remove From Index/Search By Fields

2009-04-13 Thread Johnny X
ons with quotes or in parens for a single field. > Content:(35 million) for example. > > It'll be best if you decouple your questions about query parsing from > PHP code though. And don't forget that &debugQuery=true is your > friend, so you can see how queries are being parsed. Providing that > output would be helpful to see what is actually happening with what > you're sending. > > Erik > > > > -- View this message in context: http://www.nabble.com/PHP-Remove-From-Index-Search-By-Fields-tp22996701p23024816.html Sent from the Solr - User mailing list archive at Nabble.com.

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
e: >> >> >> 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) &g

Re: PHP Remove From Index/Search By Fields

2009-04-12 Thread Johnny X
earch field. How do you search on >> multiple >> different fields in PHP? > > Use the dismax parser. /select? > q=whatever&defType=dismax&qf=field1+field2 > > See the wiki docs on dismax for more details and list of other > parameters. > >> If I wanted to search by all of the fields indexed, is that easy to >> code? > > You could list all fields in the qf field of dismax. > > Another option is to copyField all fields you want searchable into a > single field and search that single field. > >> What changes do I need to make in the XML schema? > > To use dismax, no changes to schema are needed (necessarily). > > But you may want to add copyField's to schema.xml to collect all field > text into a single field for default field searchability. > > Erik > > -- View this message in context: http://www.nabble.com/PHP-Remove-From-Index-Search-By-Fields-tp22996701p23016677.html Sent from the Solr - User mailing list archive at Nabble.com.

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%

PHP Remove From Index/Search By Fields

2009-04-10 Thread Johnny X
. How do you search on multiple different fields in PHP? If I wanted to search by all of the fields indexed, is that easy to code? What changes do I need to make in the XML schema? Thanks for much for any help! -- View this message in context: http://www.nabble.com/PHP-Remove-From-Index-Sear