Re: Searching Questions

2008-08-13 Thread Norberto Meijome
On Tue, 12 Aug 2008 13:26:26 -0700
Jake Conk [EMAIL PROTECTED] wrote:

 1) I want to search only within a specific field, for instance
 `category`. Is there a way to do this?

of course. Please see http://wiki.apache.org/solr/SolrQuerySyntax (in 
particular, follow the link to Lucene syntax..)

 
 2) When searching for multiple results are the following identical
 since *_facet and *_facet_mv have their type's both set to string?
 
 /select?q=tag_facet:%22John+McCain%22+OR+tag_facet:%22Barack+Obama%22
 /select?q=tag_facet_mv:%22John+McCain%22+OR+tag_facet_mv:%22Barack+Obama%22

Erik H. already answered this question , in another of your emails. Check your 
mailbox or the lists archives.

 3) If I'm searching for something that is in a text field but I
 specify it as a facet string rather than a text type would it still
 search within text fields or would it just limit the search to string
 fields?

I am not sure what you mean by 'a facet string' . You facet on fields, SOLR 
automatically creates facets on those fields based on the results to your query 
. 

 4) Is there a page that will show me different querying combinations
 or can someone post some more examples?

Have you check the wiki ? which page do you suggest needs more examples? 


 5) Anyone else notice returning back the data in php (wt=phps)
 doesn't unserialize? I am using PHP 5.3 w/ a nightly copy of Solr from
 last week.

sorry, haven't used PHP + SOLR

cheers,
B
_
{Beto|Norberto|Numard} Meijome

All that is necessary for the triumph of evil is that good men do nothing.
  Edmund Burke

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.


Re: Searching Questions

2008-08-13 Thread ravindra goyal
just adding ..

#1 search in a specific field:
---
it is always possible using 'q.alt' -- e.g u want to search in category
then your query might be like
(u are searching for keyword 'comuters')

  http://localhost:8080/select/?q.alt=(category:(computers))

to search in multiple fields say category and sections


http://localhost:8080/select/?q.alt=(category:(computers)+OR+sections:(computers))

to add boosting to it
 http://localhost:8080/select/?q.alt=(category:(computers)
^2+OR+sections:(computers))
--
#3 text field and facets string :
what i have observed is, it will always search in text field as usual (it
won't search it as string ) and your facet will be common strings (single
word or multiple worlds) extracted from the text field and facets count will
be the availability of that particular strings in no of documents.




On Wed, Aug 13, 2008 at 12:47 PM, Norberto Meijome [EMAIL PROTECTED]wrote:

 On Tue, 12 Aug 2008 13:26:26 -0700
 Jake Conk [EMAIL PROTECTED] wrote:

  1) I want to search only within a specific field, for instance
  `category`. Is there a way to do this?

 of course. Please see http://wiki.apache.org/solr/SolrQuerySyntax (in
 particular, follow the link to Lucene syntax..)

 
  2) When searching for multiple results are the following identical
  since *_facet and *_facet_mv have their type's both set to string?
 
  /select?q=tag_facet:%22John+McCain%22+OR+tag_facet:%22Barack+Obama%22
 
 /select?q=tag_facet_mv:%22John+McCain%22+OR+tag_facet_mv:%22Barack+Obama%22

 Erik H. already answered this question , in another of your emails. Check
 your mailbox or the lists archives.

  3) If I'm searching for something that is in a text field but I
  specify it as a facet string rather than a text type would it still
  search within text fields or would it just limit the search to string
  fields?

 I am not sure what you mean by 'a facet string' . You facet on fields, SOLR
 automatically creates facets on those fields based on the results to your
 query .

  4) Is there a page that will show me different querying combinations
  or can someone post some more examples?

 Have you check the wiki ? which page do you suggest needs more examples?


  5) Anyone else notice returning back the data in php (wt=phps)
  doesn't unserialize? I am using PHP 5.3 w/ a nightly copy of Solr from
  last week.

 sorry, haven't used PHP + SOLR

 cheers,
 B
 _
 {Beto|Norberto|Numard} Meijome

 All that is necessary for the triumph of evil is that good men do
 nothing.
  Edmund Burke

 I speak for myself, not my employer. Contents may be hot. Slippery when
 wet. Reading disclaimers makes you go blind. Writing them is worse. You have
 been Warned.



Re: Searching Questions

2008-08-13 Thread Shalin Shekhar Mangar
On Wed, Aug 13, 2008 at 1:56 AM, Jake Conk [EMAIL PROTECTED] wrote:

 4) Is there a page that will show me different querying combinations
 or can someone post some more examples?


You can see some examples of facet use at
http://wiki.apache.org/solr/SimpleFacetParameters

-- 
Regards,
Shalin Shekhar Mangar.


Searching Questions

2008-08-12 Thread Jake Conk
1) I want to search only within a specific field, for instance
`category`. Is there a way to do this?

2) When searching for multiple results are the following identical
since *_facet and *_facet_mv have their type's both set to string?

/select?q=tag_facet:%22John+McCain%22+OR+tag_facet:%22Barack+Obama%22
/select?q=tag_facet_mv:%22John+McCain%22+OR+tag_facet_mv:%22Barack+Obama%22

3) If I'm searching for something that is in a text field but I
specify it as a facet string rather than a text type would it still
search within text fields or would it just limit the search to string
fields?

4) Is there a page that will show me different querying combinations
or can someone post some more examples?

5) Anyone else notice returning back the data in php (wt=phps)
doesn't unserialize? I am using PHP 5.3 w/ a nightly copy of Solr from
last week.

Thanks,
- Jake