Yes i tried it and it worked. thank you



> Well,
>
> AND will find documents that have php in all fields but OR will find
> documents that have php in any field so you can try the same query with
> all ORs.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 09 March 2007 10:42
> To: solr-user@lucene.apache.org
> Subject: RE: Searching in multiple fields
>
>
> Description:php AND title:php AND Subject:php AND notes:php
>
> this one did not work
>
> i will try the other way too and see
>
> thanks
> aditya
>
>
>
>> Well,
>>
>> One way you can do this is:
>>
>> "Description:php AND title:php AND Subject:php AND notes:php"
>>
>> The other option is to create an extra field in your index called All
>> (or whatever) that is a concatenation of these fields with a big slop
>> between the four parts of this field and then you can search that
>> field using a number smaller than the slop.
>>
>> Sachin
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: 09 March 2007 10:29
>> To: solr-user@lucene.apache.org
>> Subject: Searching in multiple fields
>>
>> Hello,
>>
>> We have 4 fields in our XML file --- Description, title,
> Subject,notes.
>> I need to search in all these fields, how do I do that?.
>>
>>
>> For Example
>> When I search Description: php, we are able to get records that are
>> matching only with description field. But I want those records in
>> which title and subject and notes also has php.
>>
>> please advise on this
>>
>>
>> regards,
>> aditya
>>
>>
>>
>> This message has been scanned for viruses by MailControl - (see
>> http://bluepages.wsatkins.co.uk/?6875772)
>>
>>
>> This email and any attached files are confidential and copyright
>> protected. If you are not the addressee, any dissemination of this
>> communication is strictly prohibited. Unless otherwise expressly
>> agreed in writing, nothing stated in this communication shall be
> legally binding.
>>
>> The ultimate parent company of the Atkins Group is WS Atkins plc.
>> Registered in England No. 1885586.  Registered Office Woodcote Grove,
>> Ashley Road, Epsom, Surrey KT18 5BW.
>>
>> Consider the environment. Please don't print this e-mail unless you
>> really need to.
>>
>
>
>


Reply via email to