Re: Strange behavior

2008-02-12 Thread Traut
Thank you, it works. Stemming filter works only with lowercased words?

On Feb 12, 2008 4:29 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote:

> Try putting the stemmer after the lowercase filter.
> -Yonik
>
> On Feb 12, 2008 9:15 AM, Traut <[EMAIL PROTECTED]> wrote:
> > Hi all
> >
> > Please take a look at this strange behavior (connected with stemming I
> > suppose):
> >
> >
> > type:
> >
> >  > stored="false">
> >   
> > 
> > 
> > 
> > 
> >   
> >   
> > 
> > 
> > 
> > 
> >   
> > 
> >
> > field:
> >
> >   stored="false"/>
> >
> >
> >
> > I'm adding a document:
> >
> > 99 > name="name">Apple
> >
> > 
> >
> >
> > Queriyng "name:apple" - 0 results. Searching "name:Apple" - 1 result.
> But
> > "name:appl*" - 1 result
> >
> >
> > Adding next document:
> >
> > 8 > name="name">Somenamele
> >
> > 
> >
> >
> > Searching for "name:somenamele" - 1 result, for "name:Somenamele" - 1
> result
> >
> >
> > What is the problem with "Apple" ? Maybe StandardTokenizer understands
> it as
> > trademark :) ?
> >
> >
> > Thank you in advence
> >
> >
> > --
> > Best regards,
> > Traut
> >
>



-- 
Best regards,
Traut


Strange behavior

2008-02-12 Thread Traut
Hi all

Please take a look at this strange behavior (connected with stemming I
suppose):


type:


  




  
  




  


field:





I'm adding a document:

99Apple




Queriyng "name:apple" - 0 results. Searching "name:Apple" - 1 result. But
"name:appl*" - 1 result


Adding next document:

8Somenamele




Searching for "name:somenamele" - 1 result, for "name:Somenamele" - 1 result


What is the problem with "Apple" ? Maybe StandardTokenizer understands it as
trademark :) ?


Thank you in advence


-- 
Best regards,
Traut


Re: i think it is time to release new solr version

2008-01-28 Thread Traut
+ 1
Looking forward to get new release version :)

On Jan 28, 2008 6:01 AM, j. L <[EMAIL PROTECTED]> wrote:

> because lucene 2.3.0 today released..
>
>
>
> --
> regards
> j.L
>



-- 
Best regards,
Traut


Re: PhraseQuery and WildcardQuery

2008-01-10 Thread Traut
Thank you for the clarification.

On Jan 8, 2008 10:43 AM, Chris Hostetter <[EMAIL PROTECTED]> wrote:

> : I've got this error when trying to search query like q=+myFiled:"some
> : value"*
> :
> : org.apache.solr.core.SolrException: Query parsing error: Cannot parse
> : '+myFiled:"some value"*': '*' or '?' not allowed as first character in
> : WildcardQuery
>...
>
> ...this is where the subtleties of the Lucene QueryParser come into place
> ... where concepts like "word", "term", and "phrase" all collide.  No, you
> cannot use wildcards with a quoted phrase query.
>
> : p.s. unexpected - this query works just fine: q=+myFiled:some\ value*
> :   so I can just escape all control symbols and space - and I'll get
> what
>
> be carefully ... that's probably not doing what you think it's doing.
> it's searching for a documents which contain a single term that starts
> with the characters "some value" ... if you indexed with a tokenizer that
> splits on whitespace, or does any lowercasing, or does anything
> interesting at all in the analyzer, this won't match those docs.
>
> This is generally true for prefix queries, but people might be confused
> and think what they are getting with that syntax is a search for something
> matching "some" followed by a prefix query for "value*" ... if you indexed
> a doc containg "some the values" with a StopFilter to get rid of "the",
> that doc won't match your query.
>
> I say this jsut to clarify for people who see this thread: that syntax
> trick might work fine for you if you know you have a very special case,
> but
> it probably won't do what many people expect it to.
>
> :   But there are no info about space escaping at
> :
> http://lucene.apache.org/java/docs/queryparsersyntax.html#Escaping%20Special%20Characters
>
> Hmmm...  i'll file bug on that.
>
>
>
>
> -Hoss
>
>


-- 
Best regards,
Traut


PhraseQuery and WildcardQuery

2007-12-26 Thread Traut
Hi all

I've got this error when trying to search query like q=+myFiled:"some
value"*

org.apache.solr.core.SolrException: Query parsing error: Cannot parse
'+myFiled:"some value"*': '*' or '?' not allowed as first character in
WildcardQuery
at org.apache.solr.search.QueryParsing.parseQuery(QueryParsing.java:104)
at 
org.apache.solr.request.StandardRequestHandler.handleRequestBody(StandardRequestHandler.java:109)
...
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse
'+firstName:"some value"*': '*' or '?' not allowed as first character
in WildcardQuery
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:150)
at org.apache.solr.search.QueryParsing.parseQuery(QueryParsing.java:94)
...

So is there any way to use wildcard with phrase query?

p.s. unexpected - this query works just fine: q=+myFiled:some\ value*
  so I can just escape all control symbols and space - and I'll get what
I want.
  But there are no info about space escaping at
http://lucene.apache.org/java/docs/queryparsersyntax.html#Escaping%20Special%20Characters


Thank you in advance


-- 
Best regards,
Traut


SolrJ "commit" problem

2007-11-20 Thread Traut
Hi

I've got a problem with solrj from nightly build (from 2007-11-12).
I have this code:
solrClient = new CommonsHttpSolrServer(new URL(indexServerUrl));
and after "add" operation firing solrClient.commit(true, true); But commit
operation is not processing in Solr as I can see in log files
 (but I can see in debug mode that status 200 is returning after executing
getHttpConnection().executeMethod(method); in SolrJ client class file)

Command from console actually do the trick
[EMAIL PROTECTED] ~]$ curl http://traut-base:/-solr-network/update -H
"Content-Type: text/xml" --data-binary ''

I must say that I'm trying to use SolrJ client from nightly build with Solr
server release 1.2. Most likely it is actually the root of the problem

so, can I use Solr release 1.2 with nightly-build SolrJ client? Are there
any problems? What can you cay about my "commit" problem?

Thank you in advance

-- 
Best regards,
Traut


Re: leading wildcards

2007-11-12 Thread Traut
Seems like there is no way to enable leading wildcard queries except
code editing and files repacking. :(

On 11/12/07, Bill Au <[EMAIL PROTECTED]> wrote:
> The related bug is still open:
>
> http://issues.apache.org/jira/browse/SOLR-218
>
> Bill
>
> On Nov 12, 2007 10:25 AM, Traut <[EMAIL PROTECTED]> wrote:
> > Hi
> >  I found the thread about enabling leading wildcards in
> > Solr as additional option in config file. I've got nightly Solr build
> > and I can't find any options connected with leading wildcards in
> > config files.
> >
> >  How I can enable leading wildcard queries in Solr? Thank you
> >
> >
> > --
> > Best regards,
> > Traut
> >
>


-- 
Best regards,
Traut


Re: solr workflow ?

2007-11-12 Thread Traut
rtfm :)
http://lucene.apache.org/solr/tutorial.html

On Nov 12, 2007 4:33 PM, Dwarak R <[EMAIL PROTECTED]> wrote:
> Hi Guys
>
> How do we add word documents / pdf / text / etc documents in solr ?. How do 
> the content of the files are stored or indexed ?. Are these documents stored 
> as XML in the SOLR filesystem ?
>
> Regards
>
> Dwarak R
>
> This message is for the designated recipient only and may contain privileged, 
> proprietary, or otherwise private information. If you have received it in 
> error, please notify the sender&[EMAIL PROTECTED]  immediately and delete the 
> original. Any other use of the email by you is prohibited.
>



-- 
Best regards,
Traut


leading wildcards

2007-11-12 Thread Traut
Hi
 I found the thread about enabling leading wildcards in
Solr as additional option in config file. I've got nightly Solr build
and I can't find any options connected with leading wildcards in
config files.

 How I can enable leading wildcard queries in Solr? Thank you


-- 
Best regards,
Traut


Re: query syntax

2007-11-06 Thread Traut
So you think my problem is caused by different index/query data
analysis? i'll check it. thank you

On Nov 6, 2007 6:02 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote:
> On 11/6/07, Traut <[EMAIL PROTECTED]> wrote:
> >  I have in index document with field "name" and its value is
> > "somename123"
> >  Why I can't find anything with query
> >  name:somename123*
>
> This is a prefix query.  No analysis is done on the prefix, so it may
> not match analysis that was done when the document was indexed.
>
> For example, if you use WordDelimiterFilter, this may be indexed as
> "somename 123"
>
> >  but there are results on query
> >  name:"somename123*"
>
> This is not a prefix query.  The * will most likely be removed by the
> analyzer, leaving you effectively with a query of name:somename123
>
> -Yonik
>



-- 
Best regards,
Traut


query syntax

2007-11-06 Thread Traut
Hi

 I have in index document with field "name" and its value is
"somename123"
 Why I can't find anything with query
 name:somename123*
 but there are results on query
 name:"somename123*"
 As far as I understand first query is just fine. why Solr
didn't understand it?

 I'm using StandardRequestHandler

thank you

-- 
Best regards,
Traut


Re: can solr do it?

2007-09-25 Thread Traut
you can implement oscache as additional layer in Solr :)


On 9/25/07, climbingrose <[EMAIL PROTECTED]> wrote:
> I don't think you can with the current Solr because each instance runs in a
> separate web app.
>
> On 9/25/07, James liu <[EMAIL PROTECTED]> wrote:
> >
> > if use multi solr with one index, it will cache individually.
> >
> > so i think can it share their cache.(they have same config)
> >
> > --
> > regards
> > jl
> >
>
>
>
> --
> Regards,
>
> Cuong Hoang
>


-- 
Best regards,
Traut


Re: Search with in search results

2007-04-26 Thread Traut

Create a second query with IDs from first query? (id:XX id:YY id:ZZ) ?

On 4/26/07, Suresh Kannan <[EMAIL PROTECTED]> wrote:


How to extend a query type?  I need to implement search with in search
results without faceted.

Suresh





--
Best regards,
Traut


[question] speed

2007-04-22 Thread Traut

Hi all

   I'm working on some presentation for my co-workers about Lucene/Solr 
index/search process. The question is why lucene (especially Solr) is 
such a fast engine?


Has it something to do with index file formats 
(http://lucene.apache.org/java/docs/fileformats.html)?


or is it all about using reverse indexing strategy?

I'm have been digging into Lucene/Solr for nearly three month but only 
as an advanced user so I am not familiar with the details of engine 
implementation


thank you

Traut


Re: Solr logo poll

2007-04-07 Thread Traut

B


Re: failing post-optimize command execution

2007-03-28 Thread Traut

What about access rights on file snapshooter and on directories in path
/home/solr/solr/bin ?
Maybe this is the root of the problem?

On 3/28/07, galo <[EMAIL PROTECTED]> wrote:


Hi,

I've configured my solrconfig.xml to execute a snapshoot after an
optimize is made but I keep getting the following exception in the
tomcat logs:

SEVERE: java.io.IOException: Cannot run program "snapshooter" (in
directory "/home/solr/solr/bin"): java.io.IOException: error=2, No such
file or directory

I'm certain the path and filename is correct.. does anybody have
problems with this?

Cheers,

galo





--
Best regards,
Traut


Re: How to search with special values

2007-03-07 Thread Traut
It's about an analyzer. Maybe you are using a wrong analyzer which cuts 
out characters like "/" or even digits. Try to change default analyzer 
to something different or custom.



Cyril Furtado wrote:

I am indexing a field called location which is the directory  value like
/f1/ccde/bpc
 
When I search  for /f* it  return empty

When I search for f* it returns matching values
If I search for f1* again it return empty (this happens with number
followed by *)
If I search for /* it returns empty
 
I am not sure how to search for when '/' is present or if a number is

present before the *
Can someone please tell me how to search such values?
 
Cyri


Re: Reindex only records that changed

2007-03-06 Thread Traut

additional field in your DB as flag? 1 - dirty, 0 - clean.

Debra wrote:

Hi all,

This is not a direct solr issue but I need it for indexing.

Is there a way to check if a database record changed since the last index
(with out using a specail flag field that has to be set any-where the record
is updated). I would like to re-index only records that changed.

TIA
Debra