Re: about solrj giving facet=true instead of facet=on

2012-03-06 Thread Yuhan Zhang
nvm, they are identical. The problem is that I'm missing rows=0

query string that counts identical fiels are:
solr/select/?q=*%3A*&rows=0&facet=true&facet.field=domain

On Tue, Mar 6, 2012 at 4:26 PM, Yuhan Zhang  wrote:

> hi all,
>
> I'm using the solrj Java client to query solr server with facet. However,
> it ends up that it is giving the wrong query string,
> as I'm expecting:
> /solr/select/?q=*%3A*&facet=on&facet.field=domain
> it gave
> /solr/select/?q=*%3A*&facet=true&facet.field=domain
>
> it set facet=true instead of facet=on.
>
> I'm using solr 3.1 on the server, and also solrj 3.1 on the client.
>
> Is there some setting to change the query string, either from
> the client or on the server? or do I have to checkout the solrj code
> and recompile it?
>
> Thank you.
>
> Yuhan
>



-- 
Yuhan Zhang
Application Developer
OneScreen Inc.
yzh...@onescreen.com 
www.onescreen.com

The information contained in this e-mail is for the exclusive use of the
intended recipient(s) and may be confidential, proprietary, and/or legally
privileged. Inadvertent disclosure of this message does not constitute a
waiver of any privilege.  If you receive this message in error, please do
not directly or indirectly print, copy, retransmit, disseminate, or
otherwise use the information. In addition, please delete this e-mail and
all copies and notify the sender.


about solrj giving facet=true instead of facet=on

2012-03-06 Thread Yuhan Zhang
hi all,

I'm using the solrj Java client to query solr server with facet. However,
it ends up that it is giving the wrong query string,
as I'm expecting:
/solr/select/?q=*%3A*&facet=on&facet.field=domain
it gave
/solr/select/?q=*%3A*&facet=true&facet.field=domain

it set facet=true instead of facet=on.

I'm using solr 3.1 on the server, and also solrj 3.1 on the client.

Is there some setting to change the query string, either from
the client or on the server? or do I have to checkout the solrj code
and recompile it?

Thank you.

Yuhan


how to ignore cases while querying with a field with type="string"?

2012-02-23 Thread Yuhan Zhang
hi all,

I am storing a list of tags in a field using type="string" with multiValued
setting:



It works ok, when I query with  pageKeyword:"The ones". and when I search
for "ones" no record will come up as desired.

However, it appears that the query is case sensitive. so the query
pageKeyword:"The ones" and pageKeyword:"The Ones"
give different results, which is not desirable in my case.

Is there some setting in the query to let it ignore the cases? or I have
to correct the data by keeping everything lower case.


Thank you.

Yuhan Zhang


Re: SOLR Install

2011-05-23 Thread Yuhan Zhang
Hi Raj,

To index files using java, use solrj:
http://www.google.com/search?q=solrj&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

To index files by a post request, follow this tutorial:
http://www.xml.com/pub/a/2006/08/09/solr-indexing-xml-with-lucene-andrest.html

Yuhan

On Mon, May 23, 2011 at 7:10 AM, Roger Shah  wrote:

> Hi,
>
> I am a new user and I have installed SOLR 3.1.0 and running Tomcat 7.0.
> I was able to run the example which shows the SOLR Admin screen.  Also
> posted an XML file by this command from dos prompt:  java -jar post.jar
> solr.xml.
>
> How can I get SOLR to search web sites and also search through other types
> of files, databases, etc?
>
> Instead of running the example that comes with SOLR, How do I create my
> own?
>
> Also can you point me to a SOLR Guide or documentation?  I did not see any
> detailed documentation.
>
> Please show me where can I post messages on the SOLR web site.
>
> Thanks,
> Raj
>
>
>


Re: solr velocity.log setting

2011-05-16 Thread Yuhan Zhang
I solved the problem of velocity.log following this tutorial:

http://kris-itproblems.blogspot.com/2010/11/velocitylog-permission-denied.html

On Thu, May 12, 2011 at 6:36 PM, Yuhan Zhang  wrote:

> hi all,
>
> I'm new to solr, and trying to install it on tomcat. however, an exception
> was reached when
> the page http://localhost/sorl/browse was visited:
>
>  *FileNotFoundException: velocity.log (Permission denied) *
>
> looks like solr is trying to create a velocity.log file to tomcat root. so,
> how should I set the configuration
> file on solr to change the location that velocity.log is logging to?
>
> Thank you.
>
> Y
>


solr velocity.log setting

2011-05-12 Thread Yuhan Zhang
hi all,

I'm new to solr, and trying to install it on tomcat. however, an exception
was reached when
the page http://localhost/sorl/browse was visited:

 *FileNotFoundException: velocity.log (Permission denied) *

looks like solr is trying to create a velocity.log file to tomcat root. so,
how should I set the configuration
file on solr to change the location that velocity.log is logging to?

Thank you.

Y