[jira] [Commented] (SOLR-8384) Windows Start Script when Changing SOLR_SERVER_DIR via -d option

2016-10-31 Thread Jeremy Anderson (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-8384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15622416#comment-15622416
 ] 

Jeremy Anderson commented on SOLR-8384:
---

It's been a while since I was messing with this.  Essentially I believe I had 
all the binaries in a different path and was starting SOLR.cmd with the -d 
command option to direct it to that directory.  (I may have been doing this so 
that I could package SOLR into a different Jetty instance for a prod style 
deploy) SOLR starts up fine, however the secondary checks performed assume 
those binaries reside in the Default path which they no longer did.  By 
changing them to use the proper new path of SOLR_SERVER_DIR (set by the -d 
option if I recall) everything ran fine and as expected.

Take a look at :set_server_dir which is what is called when starting with the 
-d option.  Here is where SOLR_SERVER_DIR is set. It may be best to also change 
the value of DEFAULT_SERVER_DIR here as well.



> Windows Start Script when Changing SOLR_SERVER_DIR via -d option
> 
>
> Key: SOLR-8384
> URL: https://issues.apache.org/jira/browse/SOLR-8384
> Project: Solr
>  Issue Type: Bug
>  Components: scripts and tools
>Affects Versions: 5.3.1
> Environment: Windows
>Reporter: Jeremy Anderson
>Priority: Trivial
>
> bin\solr.cmd Requires change of environment variables used in the " REM now 
> wait to see Solr come online ..." command.  Currently this call uses 
> DEFAULT_SERVER_DIR which is no longer correct when starting SOLR with a 
> different server directory using the -d command option.
> Replace DEFAULT_SERVER_DIR with SOLR_SERVER_DIR so that the proper libraries 
> are able to be found when checking that SOLR started.
> There may be other uses in the script where this issue is present when 
> starting SOLR from a different directory other than 'server'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Created] (SOLR-8384) Windows Start Script when Changing SOLR_SERVER_DIR via -d option

2015-12-07 Thread Jeremy Anderson (JIRA)
Jeremy Anderson created SOLR-8384:
-

 Summary: Windows Start Script when Changing SOLR_SERVER_DIR via -d 
option
 Key: SOLR-8384
 URL: https://issues.apache.org/jira/browse/SOLR-8384
 Project: Solr
  Issue Type: Bug
  Components: scripts and tools
Affects Versions: 5.3.1
 Environment: Windows
Reporter: Jeremy Anderson
Priority: Trivial


bin\solr.cmd Requires change of environment variables used in the " REM now 
wait to see Solr come online ..." command.  Currently this call uses 
DEFAULT_SERVER_DIR which is no longer correct when starting SOLR with a 
different server directory using the -d command option.

Replace DEFAULT_SERVER_DIR with SOLR_SERVER_DIR so that the proper libraries 
are able to be found when checking that SOLR started.

There may be other uses in the script where this issue is present when starting 
SOLR from a different directory other than 'server'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5379) Query-time multi-word synonym expansion

2014-10-31 Thread Jeremy Anderson (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14191824#comment-14191824
 ] 

Jeremy Anderson commented on SOLR-5379:
---

Unfortunately, I'm swamped with other stuff on my plate.  Thinking back, I 
think I abandoned this approach and instead took Nolan Lawson's route (see 
SOLR-4381).  I don't recall how mature and stable I had gotten my patches 
before switching paths.

 Query-time multi-word synonym expansion
 ---

 Key: SOLR-5379
 URL: https://issues.apache.org/jira/browse/SOLR-5379
 Project: Solr
  Issue Type: Improvement
  Components: query parsers
Reporter: Tien Nguyen Manh
  Labels: multi-word, queryparser, synonym
 Fix For: 4.9, Trunk

 Attachments: conf-test-files-4_8_1.patch, quoted-4_8_1.patch, 
 quoted.patch, synonym-expander-4_8_1.patch, synonym-expander.patch


 While dealing with synonym at query time, solr failed to work with multi-word 
 synonyms due to some reasons:
 - First the lucene queryparser tokenizes user query by space so it split 
 multi-word term into two terms before feeding to synonym filter, so synonym 
 filter can't recognized multi-word term to do expansion
 - Second, if synonym filter expand into multiple terms which contains 
 multi-word synonym, The SolrQueryParseBase currently use MultiPhraseQuery to 
 handle synonyms. But MultiPhraseQuery don't work with term have different 
 number of words.
 For the first one, we can extend quoted all multi-word synonym in user query 
 so that lucene queryparser don't split it. There are a jira task related to 
 this one https://issues.apache.org/jira/browse/LUCENE-2605.
 For the second, we can replace MultiPhraseQuery by an appropriate BoleanQuery 
 SHOULD which contains multiple PhraseQuery in case tokens stream have 
 multi-word synonym.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-5379) Query-time multi-word synonym expansion

2014-06-10 Thread Jeremy Anderson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Anderson updated SOLR-5379:
--

Attachment: quoted-4_8_1.patch
conf-test-files-4_8_1.patch

 Query-time multi-word synonym expansion
 ---

 Key: SOLR-5379
 URL: https://issues.apache.org/jira/browse/SOLR-5379
 Project: Solr
  Issue Type: Improvement
  Components: query parsers
Reporter: Tien Nguyen Manh
  Labels: multi-word, queryparser, synonym
 Fix For: 4.9, 5.0

 Attachments: conf-test-files-4_8_1.patch, quoted-4_8_1.patch, 
 quoted.patch, synonym-expander-4_8_1.patch, synonym-expander.patch


 While dealing with synonym at query time, solr failed to work with multi-word 
 synonyms due to some reasons:
 - First the lucene queryparser tokenizes user query by space so it split 
 multi-word term into two terms before feeding to synonym filter, so synonym 
 filter can't recognized multi-word term to do expansion
 - Second, if synonym filter expand into multiple terms which contains 
 multi-word synonym, The SolrQueryParseBase currently use MultiPhraseQuery to 
 handle synonyms. But MultiPhraseQuery don't work with term have different 
 number of words.
 For the first one, we can extend quoted all multi-word synonym in user query 
 so that lucene queryparser don't split it. There are a jira task related to 
 this one https://issues.apache.org/jira/browse/LUCENE-2605.
 For the second, we can replace MultiPhraseQuery by an appropriate BoleanQuery 
 SHOULD which contains multiple PhraseQuery in case tokens stream have 
 multi-word synonym.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-5379) Query-time multi-word synonym expansion

2014-06-10 Thread Jeremy Anderson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Anderson updated SOLR-5379:
--

Attachment: (was: quoted-4_8_1.patch)

 Query-time multi-word synonym expansion
 ---

 Key: SOLR-5379
 URL: https://issues.apache.org/jira/browse/SOLR-5379
 Project: Solr
  Issue Type: Improvement
  Components: query parsers
Reporter: Tien Nguyen Manh
  Labels: multi-word, queryparser, synonym
 Fix For: 4.9, 5.0

 Attachments: conf-test-files-4_8_1.patch, quoted-4_8_1.patch, 
 quoted.patch, synonym-expander-4_8_1.patch, synonym-expander.patch


 While dealing with synonym at query time, solr failed to work with multi-word 
 synonyms due to some reasons:
 - First the lucene queryparser tokenizes user query by space so it split 
 multi-word term into two terms before feeding to synonym filter, so synonym 
 filter can't recognized multi-word term to do expansion
 - Second, if synonym filter expand into multiple terms which contains 
 multi-word synonym, The SolrQueryParseBase currently use MultiPhraseQuery to 
 handle synonyms. But MultiPhraseQuery don't work with term have different 
 number of words.
 For the first one, we can extend quoted all multi-word synonym in user query 
 so that lucene queryparser don't split it. There are a jira task related to 
 this one https://issues.apache.org/jira/browse/LUCENE-2605.
 For the second, we can replace MultiPhraseQuery by an appropriate BoleanQuery 
 SHOULD which contains multiple PhraseQuery in case tokens stream have 
 multi-word synonym.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-5379) Query-time multi-word synonym expansion

2014-06-10 Thread Jeremy Anderson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Anderson updated SOLR-5379:
--

Attachment: (was: conf-test-files-4_8_1.patch)

 Query-time multi-word synonym expansion
 ---

 Key: SOLR-5379
 URL: https://issues.apache.org/jira/browse/SOLR-5379
 Project: Solr
  Issue Type: Improvement
  Components: query parsers
Reporter: Tien Nguyen Manh
  Labels: multi-word, queryparser, synonym
 Fix For: 4.9, 5.0

 Attachments: conf-test-files-4_8_1.patch, quoted-4_8_1.patch, 
 quoted.patch, synonym-expander-4_8_1.patch, synonym-expander.patch


 While dealing with synonym at query time, solr failed to work with multi-word 
 synonyms due to some reasons:
 - First the lucene queryparser tokenizes user query by space so it split 
 multi-word term into two terms before feeding to synonym filter, so synonym 
 filter can't recognized multi-word term to do expansion
 - Second, if synonym filter expand into multiple terms which contains 
 multi-word synonym, The SolrQueryParseBase currently use MultiPhraseQuery to 
 handle synonyms. But MultiPhraseQuery don't work with term have different 
 number of words.
 For the first one, we can extend quoted all multi-word synonym in user query 
 so that lucene queryparser don't split it. There are a jira task related to 
 this one https://issues.apache.org/jira/browse/LUCENE-2605.
 For the second, we can replace MultiPhraseQuery by an appropriate BoleanQuery 
 SHOULD which contains multiple PhraseQuery in case tokens stream have 
 multi-word synonym.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-5379) Query-time multi-word synonym expansion

2014-06-06 Thread Jeremy Anderson (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14020221#comment-14020221
 ] 

Jeremy Anderson commented on SOLR-5379:
---

I'm in the process of trying to get this logic ported into the 4.8.1 Released 
Tag.  I believe I've gotten the code ported over, but am having problems 
getting the unit test to run to confirm the correctness of the port.  The main 
reason is the differences in the conf/solrconfig.xml and conf/schema.xml files 
that exist in the root and I'm guessing those used by Tien when the 4.5.0 patch 
was created.  

I'm still a SOLR novice so I'm not quite sure how to properly replicate the 
schema and configuration settings to get the unit test to run.  I'm going to 
attach patch files shortly for the 4.8.1 code base along with the current 
stubbed out configuration files.

Any help anyone can provide would be greatly appreciated.  My end goal is to 
hopefully be able to get the multi-term synonym expansion logic to work with a 
4.8.1 deployment where we're using an extended version of the SolrQueryParser.  
(I'm not sure if the multi-term synonym logic is only usable with this patch by 
the new SynonymQuotedDismaxQParser or existing DismaxQarsers).

Notes on 4.8.1 port:
* There is now 2 parsers usable by the FSTSynonymFilterFactory: 
SolrSynonymParser  WordnetSynonymParser.  The later of which I'm not sure if 
any additional logic needs to be implemented for proper usage of the tokenize 
parameter.
* All of the logic implemented in SolrQueryParserBase from 4.5.0 has now been 
moved into the utility QueryBuilder class.


 Query-time multi-word synonym expansion
 ---

 Key: SOLR-5379
 URL: https://issues.apache.org/jira/browse/SOLR-5379
 Project: Solr
  Issue Type: Improvement
  Components: query parsers
Reporter: Tien Nguyen Manh
  Labels: multi-word, queryparser, synonym
 Fix For: 4.9, 5.0

 Attachments: quoted.patch, synonym-expander.patch


 While dealing with synonym at query time, solr failed to work with multi-word 
 synonyms due to some reasons:
 - First the lucene queryparser tokenizes user query by space so it split 
 multi-word term into two terms before feeding to synonym filter, so synonym 
 filter can't recognized multi-word term to do expansion
 - Second, if synonym filter expand into multiple terms which contains 
 multi-word synonym, The SolrQueryParseBase currently use MultiPhraseQuery to 
 handle synonyms. But MultiPhraseQuery don't work with term have different 
 number of words.
 For the first one, we can extend quoted all multi-word synonym in user query 
 so that lucene queryparser don't split it. There are a jira task related to 
 this one https://issues.apache.org/jira/browse/LUCENE-2605.
 For the second, we can replace MultiPhraseQuery by an appropriate BoleanQuery 
 SHOULD which contains multiple PhraseQuery in case tokens stream have 
 multi-word synonym.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Comment Edited] (SOLR-5379) Query-time multi-word synonym expansion

2014-06-06 Thread Jeremy Anderson (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14020221#comment-14020221
 ] 

Jeremy Anderson edited comment on SOLR-5379 at 6/6/14 6:55 PM:
---

I'm in the process of trying to get this logic ported into the 4.8.1 Released 
Tag.  I believe I've gotten the code ported over, but am having problems 
getting the unit test to run to confirm the correctness of the port.  The main 
reason is the differences in the conf/solrconfig.xml and conf/schema.xml files 
that exist in the root and I'm guessing those used by Tien when the 4.5.0 patch 
was created.  

I'm still a SOLR novice so I'm not quite sure how to properly replicate the 
schema and configuration settings to get the unit test to run.  I'm going to 
attach patch files shortly for the 4.8.1 code base along with the current 
stubbed out configuration files.

Any help anyone can provide would be greatly appreciated.  My end goal is to 
hopefully be able to get the multi-term synonym expansion logic to work with a 
4.8.1 deployment where we're using an extended version of the SolrQueryParser.  
(I'm not sure if the multi-term synonym logic is only usable with this patch by 
the new SynonymQuotedDismaxQParser or existing DismaxQarsers).

Notes on 4.8.1 port:
* There is now 2 parsers usable by the FSTSynonymFilterFactory: 
SolrSynonymParser  WordnetSynonymParser.  The latter of which I'm not sure if 
any additional logic needs to be implemented for proper usage of the tokenize 
parameter.
* All of the logic implemented in SolrQueryParserBase from 4.5.0 has now been 
moved into the utility QueryBuilder class.



was (Author: rpialum):
I'm in the process of trying to get this logic ported into the 4.8.1 Released 
Tag.  I believe I've gotten the code ported over, but am having problems 
getting the unit test to run to confirm the correctness of the port.  The main 
reason is the differences in the conf/solrconfig.xml and conf/schema.xml files 
that exist in the root and I'm guessing those used by Tien when the 4.5.0 patch 
was created.  

I'm still a SOLR novice so I'm not quite sure how to properly replicate the 
schema and configuration settings to get the unit test to run.  I'm going to 
attach patch files shortly for the 4.8.1 code base along with the current 
stubbed out configuration files.

Any help anyone can provide would be greatly appreciated.  My end goal is to 
hopefully be able to get the multi-term synonym expansion logic to work with a 
4.8.1 deployment where we're using an extended version of the SolrQueryParser.  
(I'm not sure if the multi-term synonym logic is only usable with this patch by 
the new SynonymQuotedDismaxQParser or existing DismaxQarsers).

Notes on 4.8.1 port:
* There is now 2 parsers usable by the FSTSynonymFilterFactory: 
SolrSynonymParser  WordnetSynonymParser.  The later of which I'm not sure if 
any additional logic needs to be implemented for proper usage of the tokenize 
parameter.
* All of the logic implemented in SolrQueryParserBase from 4.5.0 has now been 
moved into the utility QueryBuilder class.


 Query-time multi-word synonym expansion
 ---

 Key: SOLR-5379
 URL: https://issues.apache.org/jira/browse/SOLR-5379
 Project: Solr
  Issue Type: Improvement
  Components: query parsers
Reporter: Tien Nguyen Manh
  Labels: multi-word, queryparser, synonym
 Fix For: 4.9, 5.0

 Attachments: conf-test-files-4_8_1.patch, quoted-4_8_1.patch, 
 quoted.patch, synonym-expander-4_8_1.patch, synonym-expander.patch


 While dealing with synonym at query time, solr failed to work with multi-word 
 synonyms due to some reasons:
 - First the lucene queryparser tokenizes user query by space so it split 
 multi-word term into two terms before feeding to synonym filter, so synonym 
 filter can't recognized multi-word term to do expansion
 - Second, if synonym filter expand into multiple terms which contains 
 multi-word synonym, The SolrQueryParseBase currently use MultiPhraseQuery to 
 handle synonyms. But MultiPhraseQuery don't work with term have different 
 number of words.
 For the first one, we can extend quoted all multi-word synonym in user query 
 so that lucene queryparser don't split it. There are a jira task related to 
 this one https://issues.apache.org/jira/browse/LUCENE-2605.
 For the second, we can replace MultiPhraseQuery by an appropriate BoleanQuery 
 SHOULD which contains multiple PhraseQuery in case tokens stream have 
 multi-word synonym.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-5379) Query-time multi-word synonym expansion

2014-06-06 Thread Jeremy Anderson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Anderson updated SOLR-5379:
--

Attachment: synonym-expander-4_8_1.patch
quoted-4_8_1.patch
conf-test-files-4_8_1.patch

Initial files for 4.8.1 port.  Unit test does not run, therefore the validity 
of the port is unknown.

 Query-time multi-word synonym expansion
 ---

 Key: SOLR-5379
 URL: https://issues.apache.org/jira/browse/SOLR-5379
 Project: Solr
  Issue Type: Improvement
  Components: query parsers
Reporter: Tien Nguyen Manh
  Labels: multi-word, queryparser, synonym
 Fix For: 4.9, 5.0

 Attachments: conf-test-files-4_8_1.patch, quoted-4_8_1.patch, 
 quoted.patch, synonym-expander-4_8_1.patch, synonym-expander.patch


 While dealing with synonym at query time, solr failed to work with multi-word 
 synonyms due to some reasons:
 - First the lucene queryparser tokenizes user query by space so it split 
 multi-word term into two terms before feeding to synonym filter, so synonym 
 filter can't recognized multi-word term to do expansion
 - Second, if synonym filter expand into multiple terms which contains 
 multi-word synonym, The SolrQueryParseBase currently use MultiPhraseQuery to 
 handle synonyms. But MultiPhraseQuery don't work with term have different 
 number of words.
 For the first one, we can extend quoted all multi-word synonym in user query 
 so that lucene queryparser don't split it. There are a jira task related to 
 this one https://issues.apache.org/jira/browse/LUCENE-2605.
 For the second, we can replace MultiPhraseQuery by an appropriate BoleanQuery 
 SHOULD which contains multiple PhraseQuery in case tokens stream have 
 multi-word synonym.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org