Re: how to do exact serch with solrj

2009-05-31 Thread Jianbin Dai

I tried, but seems it's not working right.

--- On Sat, 5/30/09, Avlesh Singh avl...@gmail.com wrote:

 From: Avlesh Singh avl...@gmail.com
 Subject: Re: how to do exact serch with solrj
 To: solr-user@lucene.apache.org
 Date: Saturday, May 30, 2009, 10:56 PM
 query.setQuery(title:hello the
 world) is what you need.
 
 Cheers
 Avlesh
 
 On Sun, May 31, 2009 at 6:23 AM, Jianbin Dai djian...@yahoo.com
 wrote:
 
 
  Hi,
 
  I want to search hello the world in the title
 field using solrj. I set
  the query filter
  query.addFilterQuery(title);
  query.setQuery(hello the world);
 
  but it returns not exact match results as well.
 
  I know one way to do it is to set title field to
 string instead of text.
  But is there any way i can do it? If I do the search
 through web interface
  Solr Admin by title:hello the world, it returns
 exact matches.
 
  Thanks.
 
  JB
 
 
 
 
 
 


  



Re: how to do exact serch with solrj

2009-05-31 Thread Avlesh Singh
You need exact match for all the three tokens?
If yes, try query.setQuery(title:\hello the world\);

Cheers
Avlesh

On Sun, May 31, 2009 at 12:12 PM, Jianbin Dai djian...@yahoo.com wrote:


 I tried, but seems it's not working right.

 --- On Sat, 5/30/09, Avlesh Singh avl...@gmail.com wrote:

  From: Avlesh Singh avl...@gmail.com
  Subject: Re: how to do exact serch with solrj
  To: solr-user@lucene.apache.org
  Date: Saturday, May 30, 2009, 10:56 PM
  query.setQuery(title:hello the
  world) is what you need.
 
  Cheers
  Avlesh
 
  On Sun, May 31, 2009 at 6:23 AM, Jianbin Dai djian...@yahoo.com
  wrote:
 
  
   Hi,
  
   I want to search hello the world in the title
  field using solrj. I set
   the query filter
   query.addFilterQuery(title);
   query.setQuery(hello the world);
  
   but it returns not exact match results as well.
  
   I know one way to do it is to set title field to
  string instead of text.
   But is there any way i can do it? If I do the search
  through web interface
   Solr Admin by title:hello the world, it returns
  exact matches.
  
   Thanks.
  
   JB
  
  
  
  
  
 







Re: how to do exact serch with solrj

2009-05-31 Thread Jianbin Dai

That's correct! Thanks Avlesh.

--- On Sat, 5/30/09, Avlesh Singh avl...@gmail.com wrote:

 From: Avlesh Singh avl...@gmail.com
 Subject: Re: how to do exact serch with solrj
 To: solr-user@lucene.apache.org
 Date: Saturday, May 30, 2009, 11:45 PM
 You need exact match for all the
 three tokens?
 If yes, try query.setQuery(title:\hello the world\);
 
 Cheers
 Avlesh
 
 On Sun, May 31, 2009 at 12:12 PM, Jianbin Dai djian...@yahoo.com
 wrote:
 
 
  I tried, but seems it's not working right.
 
  --- On Sat, 5/30/09, Avlesh Singh avl...@gmail.com
 wrote:
 
   From: Avlesh Singh avl...@gmail.com
   Subject: Re: how to do exact serch with solrj
   To: solr-user@lucene.apache.org
   Date: Saturday, May 30, 2009, 10:56 PM
   query.setQuery(title:hello the
   world) is what you need.
  
   Cheers
   Avlesh
  
   On Sun, May 31, 2009 at 6:23 AM, Jianbin Dai
 djian...@yahoo.com
   wrote:
  
   
Hi,
   
I want to search hello the world in the
 title
   field using solrj. I set
the query filter
query.addFilterQuery(title);
query.setQuery(hello the world);
   
but it returns not exact match results as
 well.
   
I know one way to do it is to set title
 field to
   string instead of text.
But is there any way i can do it? If I do
 the search
   through web interface
Solr Admin by title:hello the world, it
 returns
   exact matches.
   
Thanks.
   
JB
   
   
   
   
   
  
 
 
 
 
 
 


  


Re: When searching for !...@#$%^*() all documents are matched incorrectly

2009-05-31 Thread Sam Michaels

As per relevance, no results should be returned. But all the results are
returned in alphabetical order.


Walter Underwood wrote:
 
 I'm really curious. What is the most relevant result for that query?
 
 wunder
 
 On 5/30/09 7:35 PM, Ryan McKinley ryan...@gmail.com wrote:
 
 two key things to try (for anyone ever wondering why a query matches
 documents)
 
 1.  add debugQuery=true and look at the explain text below --
 anything that contributed to the score is listed there
 2.  check /admin/analysis.jsp -- this will let you see how analyzers
 break text up into tokens.
 
 Not sure off hand, but I'm guessing the WordDelimiterFilterFactory has
 something to do with it...
 
 
 On Sat, May 30, 2009 at 5:59 PM, Sam Michaels mas...@yahoo.com wrote:
 
 Hi,
 
 I'm running Solr 1.3/Java 1.6.
 
 When I run a query like  - (activity_type:NAME) AND
 title:(\...@#$%\^\*\(\))
 all the documents are returned even though there is not a single match.
 There is no title that matches the string (which has been escaped).
 
 My document structure is as follows
 
 doc
 str name=activity_typeNAME/str
 str name=titleBathing/str
 
 /doc
 
 
 The title field is of type text_title which is described below.
 
 fieldType name=text_title class=solr.TextField
 positionIncrementGap=100
      analyzer type=index
        tokenizer class=solr.WhitespaceTokenizerFactory/
        !-- in this example, we will only use synonyms at query time
        filter class=solr.SynonymFilterFactory
 synonyms=index_synonyms.txt ignoreCase=true expand=false/
        --
        filter class=solr.WordDelimiterFilterFactory
 generateWordParts=1 generateNumberParts=1 catenateWords=1
 catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
        filter class=solr.LowerCaseFilterFactory/
        filter class=solr.RemoveDuplicatesTokenFilterFactory/
      /analyzer
      analyzer type=query
        tokenizer class=solr.WhitespaceTokenizerFactory/
        filter class=solr.SynonymFilterFactory synonyms=synonyms.txt
 ignoreCase=true expand=true/
        filter class=solr.WordDelimiterFilterFactory
 generateWordParts=1 generateNumberParts=1 catenateWords=1
 catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
        filter class=solr.LowerCaseFilterFactory/
        filter class=solr.RemoveDuplicatesTokenFilterFactory/
 
      /analyzer
    /fieldType
 
 When I run the query against Luke, no results are returned. Any
 suggestions
 are appreciated.
 
 
 --
 View this message in context:
 http://www.nabble.com/When-searching-for-%21%40-%24-%5E-*%28%29-all-documents
 -are-matched-incorrectly-tp23797731p23797731.html
 Sent from the Solr - User mailing list archive at Nabble.com.
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/When-searching-for-%21%40-%24-%5E-*%28%29-all-documents-are-matched-incorrectly-tp23797731p23804060.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: When searching for !...@#$%^*() all documents are matched incorrectly

2009-05-31 Thread Sam Michaels

Upon some further experimentation, I found out that even @ matches all the
documents. However when I append the wildcard * to @ (@*) then there is no
match...

SM


Sam Michaels wrote:
 
 Hi,
 
 I'm running Solr 1.3/Java 1.6.  
 
 When I run a query like  - (activity_type:NAME) AND
 title:(\...@#$%\^\*\(\)) all the documents are returned even though there
 is not a single match. There is no title that matches the string (which
 has been escaped). 
 
 My document structure is as follows
 
 doc
 str name=activity_typeNAME/str
 str name=titleBathing/str
 
 /doc
 
 
 The title field is of type text_title which is described below. 
 
 fieldType name=text_title class=solr.TextField
 positionIncrementGap=100
   analyzer type=index
 tokenizer class=solr.WhitespaceTokenizerFactory/
 !-- in this example, we will only use synonyms at query time
 filter class=solr.SynonymFilterFactory
 synonyms=index_synonyms.txt ignoreCase=true expand=false/
 --
 filter class=solr.WordDelimiterFilterFactory
 generateWordParts=1 generateNumberParts=1 catenateWords=1
 catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
 filter class=solr.LowerCaseFilterFactory/
 filter class=solr.RemoveDuplicatesTokenFilterFactory/
   /analyzer
   analyzer type=query
 tokenizer class=solr.WhitespaceTokenizerFactory/
 filter class=solr.SynonymFilterFactory synonyms=synonyms.txt
 ignoreCase=true expand=true/
 filter class=solr.WordDelimiterFilterFactory
 generateWordParts=1 generateNumberParts=1 catenateWords=1
 catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
 filter class=solr.LowerCaseFilterFactory/
 filter class=solr.RemoveDuplicatesTokenFilterFactory/
 
   /analyzer
 /fieldType
 
 When I run the query against Luke, no results are returned. Any
 suggestions are appreciated.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/When-searching-for-%21%40-%24-%5E-*%28%29-all-documents-are-matched-incorrectly-tp23797731p23804381.html
Sent from the Solr - User mailing list archive at Nabble.com.



User search in Facebook like

2009-05-31 Thread Vincent Pérès

Hello,

I built a feature which allow users to search for other user thanks to a
dynamic text box.
Like facebook, when you search for your friends, the name is display in a
javascript dropdown list with a small picture. 
But I'm not completely happy with the search... I'm using a standard search
like ?q=vincent and I get back the results list. If I type 'vinc' I will
not get any results (But I would like to display all the users where the
name start with 'vinc'). Maybe I need an extra param?
I also tried the autosuggest, but I get a list of terms and not direct
results...

Could you suggest me some solr feature which could help me to get better
results?

Thanks a lot !
Vincent
-- 
View this message in context: 
http://www.nabble.com/User-search-in-Facebook-like-tp23804854p23804854.html
Sent from the Solr - User mailing list archive at Nabble.com.



NPE on MERGEINDEXES

2009-05-31 Thread Koji Sekiguchi
Maybe I did something wrong, I got NPE when trying to MERGEINDEXES:

http://localhost:8983/solr/admin/cores?action=MERGEINDEXEScore=core0indexDirs=indexname

java.lang.NullPointerException
at
org.apache.solr.update.processor.RunUpdateProcessor.init(RunUpdateProcessorFactory.java:55)
at
org.apache.solr.update.processor.RunUpdateProcessorFactory.getInstance(RunUpdateProcessorFactory.java:43)
at
org.apache.solr.update.processor.UpdateRequestProcessorChain.createProcessor(UpdateRequestProcessorChain.java:55)
at
org.apache.solr.handler.admin.CoreAdminHandler.handleMergeAction(CoreAdminHandler.java:191)
at
org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:151)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at
org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:301)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:174)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

I'm using the latest trunk.

Solr was started:

$ cd example
$ java -Dsolr.solr.home=./multicore -jar start.jar


Thank you,

Koji




Re: User search in Facebook like

2009-05-31 Thread Dietrich Featherston
try searching for matches where the name starts with whatever the user has
entered so far with a wildcard

?q=vinc*

Are you always going to be searching for names?  If so you could see if the
user has entered two terms and suffix each with a wildcard to get
potentially more relevant searches.

For example, if a user enters vince p, you might substitute that with the
query vince* p* to get the following hits
Vincent Pérès
Vincent Price
Vince Price
Vince Pérès
etc...

D



2009/5/31 Vincent Pérès vincent.pe...@gmail.com


 Hello,

 I built a feature which allow users to search for other user thanks to a
 dynamic text box.
 Like facebook, when you search for your friends, the name is display in a
 javascript dropdown list with a small picture.
 But I'm not completely happy with the search... I'm using a standard search
 like ?q=vincent and I get back the results list. If I type 'vinc' I will
 not get any results (But I would like to display all the users where the
 name start with 'vinc'). Maybe I need an extra param?
 I also tried the autosuggest, but I get a list of terms and not direct
 results...

 Could you suggest me some solr feature which could help me to get better
 results?

 Thanks a lot !
 Vincent
 --
 View this message in context:
 http://www.nabble.com/User-search-in-Facebook-like-tp23804854p23804854.html
 Sent from the Solr - User mailing list archive at Nabble.com.




Re: User search in Facebook like

2009-05-31 Thread Vincent Pérès

Thanks very much, that's solve my problem !

Now I see another question : how can I manage the lower/upper cases in my
search?

Thanks !


Dietrich Featherston-2 wrote:
 
 try searching for matches where the name starts with whatever the user has
 entered so far with a wildcard
 
 ?q=vinc*
 
 Are you always going to be searching for names?  If so you could see if
 the
 user has entered two terms and suffix each with a wildcard to get
 potentially more relevant searches.
 
 For example, if a user enters vince p, you might substitute that with
 the
 query vince* p* to get the following hits
 Vincent Pérès
 Vincent Price
 Vince Price
 Vince Pérès
 etc...
 
 D
 
 
 
 2009/5/31 Vincent Pérès vincent.pe...@gmail.com
 

 Hello,

 I built a feature which allow users to search for other user thanks to a
 dynamic text box.
 Like facebook, when you search for your friends, the name is display in a
 javascript dropdown list with a small picture.
 But I'm not completely happy with the search... I'm using a standard
 search
 like ?q=vincent and I get back the results list. If I type 'vinc' I
 will
 not get any results (But I would like to display all the users where the
 name start with 'vinc'). Maybe I need an extra param?
 I also tried the autosuggest, but I get a list of terms and not direct
 results...

 Could you suggest me some solr feature which could help me to get better
 results?

 Thanks a lot !
 Vincent
 --
 View this message in context:
 http://www.nabble.com/User-search-in-Facebook-like-tp23804854p23804854.html
 Sent from the Solr - User mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/User-search-in-Facebook-like-tp23804854p23805261.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: When searching for !...@#$%^*() all documents are matched incorrectly

2009-05-31 Thread Sam Michaels

Here is the output from the debug query when I'm trying to match the String @
against Bathing (should not match)

str name=GLOM-1
3.2689073 = (MATCH) weight(activity_type:NAME in 0), product of:
  0.9994 = queryWeight(activity_type:NAME), product of:
3.2689075 = idf(docFreq=153, numDocs=1489)
0.30591258 = queryNorm
  3.2689075 = (MATCH) fieldWeight(activity_type:NAME in 0), product of:
1.0 = tf(termFreq(activity_type:NAME)=1)
3.2689075 = idf(docFreq=153, numDocs=1489)
1.0 = fieldNorm(field=activity_type, doc=0)
/str

Looks like the AND clause in the search string is ignored...

SM.


ryantxu wrote:
 
 two key things to try (for anyone ever wondering why a query matches
 documents)
 
 1.  add debugQuery=true and look at the explain text below --
 anything that contributed to the score is listed there
 2.  check /admin/analysis.jsp -- this will let you see how analyzers
 break text up into tokens.
 
 Not sure off hand, but I'm guessing the WordDelimiterFilterFactory has
 something to do with it...
 
 
 On Sat, May 30, 2009 at 5:59 PM, Sam Michaels mas...@yahoo.com wrote:

 Hi,

 I'm running Solr 1.3/Java 1.6.

 When I run a query like  - (activity_type:NAME) AND
 title:(\...@#$%\^\*\(\))
 all the documents are returned even though there is not a single match.
 There is no title that matches the string (which has been escaped).

 My document structure is as follows

 doc
 str name=activity_typeNAME/str
 str name=titleBathing/str
 
 /doc


 The title field is of type text_title which is described below.

 fieldType name=text_title class=solr.TextField
 positionIncrementGap=100
      analyzer type=index
        tokenizer class=solr.WhitespaceTokenizerFactory/
        !-- in this example, we will only use synonyms at query time
        filter class=solr.SynonymFilterFactory
 synonyms=index_synonyms.txt ignoreCase=true expand=false/
        --
        filter class=solr.WordDelimiterFilterFactory
 generateWordParts=1 generateNumberParts=1 catenateWords=1
 catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
        filter class=solr.LowerCaseFilterFactory/
        filter class=solr.RemoveDuplicatesTokenFilterFactory/
      /analyzer
      analyzer type=query
        tokenizer class=solr.WhitespaceTokenizerFactory/
        filter class=solr.SynonymFilterFactory synonyms=synonyms.txt
 ignoreCase=true expand=true/
        filter class=solr.WordDelimiterFilterFactory
 generateWordParts=1 generateNumberParts=1 catenateWords=1
 catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
        filter class=solr.LowerCaseFilterFactory/
        filter class=solr.RemoveDuplicatesTokenFilterFactory/

      /analyzer
    /fieldType

 When I run the query against Luke, no results are returned. Any
 suggestions
 are appreciated.


 --
 View this message in context:
 http://www.nabble.com/When-searching-for-%21%40-%24-%5E-*%28%29-all-documents-are-matched-incorrectly-tp23797731p23797731.html
 Sent from the Solr - User mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/When-searching-for-%21%40-%24-%5E-*%28%29-all-documents-are-matched-incorrectly-tp23797731p23807341.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Java OutOfmemory error during autowarming

2009-05-31 Thread Chris Harris
Solr offers no configuration for FieldCache, neither in solrconfig.xml nor
anywhere else; rather, that cache gets populated automatically in the depths
of Lucene when you do a sort (or also apparently, as Yonik says, when you
use a field in a function query).

From the wiki: 'Lucene has a low level FieldCache which is used for
sorting (and in some cases faceting). This cache is not managed by Solr it
has no configuration options and cannot be autowarmed -- it is initialized
the first time it is used for each Searcher.' (
http://wiki.apache.org/solr/SolrCaching)

2009/5/29 Francis Yakin fya...@liquid.com


 I know, but the FieldCache is not in the solrconfig.xml


 -Original Message-
 From: Yonik Seeley [mailto:ysee...@gmail.com]
 Sent: Friday, May 29, 2009 10:47 AM
 To: solr-user@lucene.apache.org
 Subject: Re: Java OutOfmemory error during autowarming

 On Fri, May 29, 2009 at 1:44 PM, Francis Yakin fya...@liquid.com wrote:
 
  There is no FieldCache entries in solrconfig.xml ( BTW we are
  running version 1.2.0)

 Lucene FieldCache entries are created when you sort on a field or when you
 use a field in a function query.

 -Yonik



Re: User search in Facebook like

2009-05-31 Thread rswart

Hi Vincent,


If I recall correctly a wildcard query does not use any of the filters
defined in your fieldtype (search the news group for this). So using a
LowerCaseFilterFactory does not work and you'll need to do the to lower case
transform yourself on the client side (javascript?).

However, if I understand correctly you are trying to build an autocomplete
functionality. The wildcard query may be too slow for this. We are using an 
ngram filter for autocompleting over millions of names. This seems to work
fine in test (we are not live yet). Another advantage is that your lower
case issue is solved.

Example config:


fieldType name=autoComplete class=solr.TextField 
omitNorms=true
analyzer
tokenizer 
class=solr.WhitespaceTokenizerFactory /
filter class=solr.LowerCaseFilterFactory /
filter class=solr.EdgeNGramFilterFactory
maxGramSize=20 minGramSize=2 /
/analyzer
analyzer type=query
tokenizer 
class=solr.WhitespaceTokenizerFactory /
filter class=solr.LowerCaseFilterFactory /
filter class=solr.PatternReplaceFilterFactory
pattern=^(.{20})(.*)? 
replacement=$1 replace=all /
/analyzer
/fieldType


Cheers,

Richard


Vincent Pérès wrote:
 
 Thanks very much, that's solve my problem !
 
 Now I see another question : how can I manage the lower/upper cases in my
 search?
 
 Thanks !
 
 
 Dietrich Featherston-2 wrote:
 
 try searching for matches where the name starts with whatever the user
 has
 entered so far with a wildcard
 
 ?q=vinc*
 
 Are you always going to be searching for names?  If so you could see if
 the
 user has entered two terms and suffix each with a wildcard to get
 potentially more relevant searches.
 
 For example, if a user enters vince p, you might substitute that with
 the
 query vince* p* to get the following hits
 Vincent Pérès
 Vincent Price
 Vince Price
 Vince Pérès
 etc...
 
 D
 
 
 
 2009/5/31 Vincent Pérès vincent.pe...@gmail.com
 

 Hello,

 I built a feature which allow users to search for other user thanks to a
 dynamic text box.
 Like facebook, when you search for your friends, the name is display in
 a
 javascript dropdown list with a small picture.
 But I'm not completely happy with the search... I'm using a standard
 search
 like ?q=vincent and I get back the results list. If I type 'vinc' I
 will
 not get any results (But I would like to display all the users where the
 name start with 'vinc'). Maybe I need an extra param?
 I also tried the autosuggest, but I get a list of terms and not direct
 results...

 Could you suggest me some solr feature which could help me to get better
 results?

 Thanks a lot !
 Vincent
 --
 View this message in context:
 http://www.nabble.com/User-search-in-Facebook-like-tp23804854p23804854.html
 Sent from the Solr - User mailing list archive at Nabble.com.


 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/User-search-in-Facebook-like-tp23804854p23807385.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: When searching for !...@#$%^*() all documents are matched incorrectly

2009-05-31 Thread Walter Underwood
Use the [analysis] link on the Solr admin UI to get more info on
how this is being interpreted.

However, I am curious about why this is important. Do users enter
this query often? If not, maybe it is not something to spend time on.

wunder

On 5/31/09 2:56 PM, Sam Michaels mas...@yahoo.com wrote:

 
 Here is the output from the debug query when I'm trying to match the String @
 against Bathing (should not match)
 
 str name=GLOM-1
 3.2689073 = (MATCH) weight(activity_type:NAME in 0), product of:
   0.9994 = queryWeight(activity_type:NAME), product of:
 3.2689075 = idf(docFreq=153, numDocs=1489)
 0.30591258 = queryNorm
   3.2689075 = (MATCH) fieldWeight(activity_type:NAME in 0), product of:
 1.0 = tf(termFreq(activity_type:NAME)=1)
 3.2689075 = idf(docFreq=153, numDocs=1489)
 1.0 = fieldNorm(field=activity_type, doc=0)
 /str
 
 Looks like the AND clause in the search string is ignored...
 
 SM.
 
 
 ryantxu wrote:
 
 two key things to try (for anyone ever wondering why a query matches
 documents)
 
 1.  add debugQuery=true and look at the explain text below --
 anything that contributed to the score is listed there
 2.  check /admin/analysis.jsp -- this will let you see how analyzers
 break text up into tokens.
 
 Not sure off hand, but I'm guessing the WordDelimiterFilterFactory has
 something to do with it...
 
 
 On Sat, May 30, 2009 at 5:59 PM, Sam Michaels mas...@yahoo.com wrote:
 
 Hi,
 
 I'm running Solr 1.3/Java 1.6.
 
 When I run a query like  - (activity_type:NAME) AND
 title:(\...@#$%\^\*\(\))
 all the documents are returned even though there is not a single match.
 There is no title that matches the string (which has been escaped).
 
 My document structure is as follows
 
 doc
 str name=activity_typeNAME/str
 str name=titleBathing/str
 
 /doc
 
 
 The title field is of type text_title which is described below.
 
 fieldType name=text_title class=solr.TextField
 positionIncrementGap=100
      analyzer type=index
        tokenizer class=solr.WhitespaceTokenizerFactory/
        !-- in this example, we will only use synonyms at query time
        filter class=solr.SynonymFilterFactory
 synonyms=index_synonyms.txt ignoreCase=true expand=false/
        --
        filter class=solr.WordDelimiterFilterFactory
 generateWordParts=1 generateNumberParts=1 catenateWords=1
 catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
        filter class=solr.LowerCaseFilterFactory/
        filter class=solr.RemoveDuplicatesTokenFilterFactory/
      /analyzer
      analyzer type=query
        tokenizer class=solr.WhitespaceTokenizerFactory/
        filter class=solr.SynonymFilterFactory synonyms=synonyms.txt
 ignoreCase=true expand=true/
        filter class=solr.WordDelimiterFilterFactory
 generateWordParts=1 generateNumberParts=1 catenateWords=1
 catenateNumbers=1 catenateAll=1 splitOnCaseChange=1/
        filter class=solr.LowerCaseFilterFactory/
        filter class=solr.RemoveDuplicatesTokenFilterFactory/
 
      /analyzer
    /fieldType
 
 When I run the query against Luke, no results are returned. Any
 suggestions
 are appreciated.
 
 
 --
 View this message in context:
 http://www.nabble.com/When-searching-for-%21%40-%24-%5E-*%28%29-all-document
 s-are-matched-incorrectly-tp23797731p23797731.html
 Sent from the Solr - User mailing list archive at Nabble.com.
 
 
 
 



Using Chinese / How to ?

2009-05-31 Thread Fer-Bj

Hello,

 is there any how to already created to get me up using SOLR 1.3 running
for a chinese based website?
 Currently our site is using SOLR 1.2, and we tried to move into 1.3 but we
couldn't complete our reindex as it seems like 1.3 is more strict when it
comes to special chars.

I would appreciate any help anyone may provide on this. 

Thanks!!
-- 
View this message in context: 
http://www.nabble.com/Using-Chinese---How-to---tp23810129p23810129.html
Sent from the Solr - User mailing list archive at Nabble.com.



Problem Regarding More Like This Handler

2009-05-31 Thread deepak agrawal
Hi,

I am using Solr.In that i am using Standered Request handler.
- requestHandler name=standard class=solr.SearchHandler default=true
- !--  default values for query parameters   --
- lst name=defaults
  str name=echoParamsexplicit/str
- !--
   int name=rows10/int
   str name=fl*/str
   str name=version2.1/str
  --
  /lst
  /requestHandler
I am indexed data with that handler.In Our Schema there is a BODY Tag.In
that i stored the document content.
Now i am going to get some Most Interesting tirms from that content With
using More Like this Handler.
I configured More like this Handler In Config file like this  -
- requestHandler name=/mlt class=solr.MoreLikeThisHandler
- lst name=defaults
  int name=mlt.mindf1/int
  /lst
  /requestHandler

For Getting the Interesting Tirms from the Content I am hitting that query
to the Solr.
http://localhost:8081/solr1/mlt/?q=A:15mlt.mintf=3mlt.minwl=2mlt.interestingTerms=detailsmlt.boost=truemlt.match.include=falsemlt.fl=BODYstart=0rows=1mlt.maxntp=200

*For this i am getting Some interesting Tirms.But the Problem is that words
are note comming correctly.
like the words end with es,ies,y,ed  etc so they are coming without these.*
*
Example -
Duty comes Like Duti
puts comes like put
series comes like seri
settled comes like settl
*
So Please help me how can i get the exact words in More Interesting Tirms.

-- 
DEEPAK AGRAWAL
+91-9379433455
GOOD LUCK.