You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Digy (JIRA)" <ji...@apache.org> on 2007/08/14 19:07:35 UTC
[jira] Created: (LUCENENET-65) Test case "TestSerializable" uses
the stream after closing.
Test case "TestSerializable" uses the stream after closing.
------------------------------------------------------------
Key: LUCENENET-65
URL: https://issues.apache.org/jira/browse/LUCENENET-65
Project: Lucene.Net
Issue Type: Bug
Reporter: Digy
[Test]
public virtual void TestSerializable()
{
Directory dir = new RAMDirectory();
System.IO.MemoryStream bos = new System.IO.MemoryStream(1024);
Assert.AreEqual(0, bos.Length, "initially empty");
System.IO.BinaryWriter out_Renamed = new System.IO.BinaryWriter(bos);
long headerSize = bos.Length;
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
formatter.Serialize(out_Renamed.BaseStream, dir);
//out_Renamed.Close(); ----> BUGGY LINE
Assert.IsTrue(headerSize < bos.Length, "contains more then just header");
out_Renamed.Close();
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Pick out keywords from a search
Posted by tony njedeh <nj...@yahoo.com>.
Good day all,
I am doing a search with lucene.net, on Vb and I have gotten the code to search for keywords within files, I was wondering if anyone knew how to extract the keywords searched, from the files through Lucene.
Thanks
Anthony
"Digy (JIRA)" <ji...@apache.org> wrote:
[jira] Updated: (LUCENENET-65) Test case "TestSerializable" uses
the stream after closing.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Digy updated LUCENENET-65:
--------------------------
Attachment: TestRAMDirectory.patch
> Test case "TestSerializable" uses the stream after closing.
> ------------------------------------------------------------
>
> Key: LUCENENET-65
> URL: https://issues.apache.org/jira/browse/LUCENENET-65
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Attachments: TestRAMDirectory.patch
>
>
>
> [Test]
> public virtual void TestSerializable()
> {
> Directory dir = new RAMDirectory();
> System.IO.MemoryStream bos = new System.IO.MemoryStream(1024);
> Assert.AreEqual(0, bos.Length, "initially empty");
> System.IO.BinaryWriter out_Renamed = new System.IO.BinaryWriter(bos);
> long headerSize = bos.Length;
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
> formatter.Serialize(out_Renamed.BaseStream, dir);
> //out_Renamed.Close(); ----> BUGGY LINE
> Assert.IsTrue(headerSize < bos.Length, "contains more then just header");
> out_Renamed.Close();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (LUCENENET-65) Test case "TestSerializable" uses
the stream after closing.
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Aroush reassigned LUCENENET-65:
--------------------------------------
Assignee: George Aroush
> Test case "TestSerializable" uses the stream after closing.
> ------------------------------------------------------------
>
> Key: LUCENENET-65
> URL: https://issues.apache.org/jira/browse/LUCENENET-65
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Assignee: George Aroush
> Priority: Trivial
> Attachments: TestRAMDirectory.patch
>
>
>
> [Test]
> public virtual void TestSerializable()
> {
> Directory dir = new RAMDirectory();
> System.IO.MemoryStream bos = new System.IO.MemoryStream(1024);
> Assert.AreEqual(0, bos.Length, "initially empty");
> System.IO.BinaryWriter out_Renamed = new System.IO.BinaryWriter(bos);
> long headerSize = bos.Length;
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
> formatter.Serialize(out_Renamed.BaseStream, dir);
> //out_Renamed.Close(); ----> BUGGY LINE
> Assert.IsTrue(headerSize < bos.Length, "contains more then just header");
> out_Renamed.Close();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (LUCENENET-65) Test case "TestSerializable" uses
the stream after closing.
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Aroush resolved LUCENENET-65.
------------------------------------
Resolution: Fixed
Patch applied and delivered to 2.1
> Test case "TestSerializable" uses the stream after closing.
> ------------------------------------------------------------
>
> Key: LUCENENET-65
> URL: https://issues.apache.org/jira/browse/LUCENENET-65
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Assignee: George Aroush
> Priority: Trivial
> Attachments: TestRAMDirectory.patch
>
>
>
> [Test]
> public virtual void TestSerializable()
> {
> Directory dir = new RAMDirectory();
> System.IO.MemoryStream bos = new System.IO.MemoryStream(1024);
> Assert.AreEqual(0, bos.Length, "initially empty");
> System.IO.BinaryWriter out_Renamed = new System.IO.BinaryWriter(bos);
> long headerSize = bos.Length;
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
> formatter.Serialize(out_Renamed.BaseStream, dir);
> //out_Renamed.Close(); ----> BUGGY LINE
> Assert.IsTrue(headerSize < bos.Length, "contains more then just header");
> out_Renamed.Close();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (LUCENENET-65) Test case "TestSerializable" uses
the stream after closing.
Posted by "George Aroush (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Aroush closed LUCENENET-65.
----------------------------------
> Test case "TestSerializable" uses the stream after closing.
> ------------------------------------------------------------
>
> Key: LUCENENET-65
> URL: https://issues.apache.org/jira/browse/LUCENENET-65
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Assignee: George Aroush
> Priority: Trivial
> Attachments: TestRAMDirectory.patch
>
>
>
> [Test]
> public virtual void TestSerializable()
> {
> Directory dir = new RAMDirectory();
> System.IO.MemoryStream bos = new System.IO.MemoryStream(1024);
> Assert.AreEqual(0, bos.Length, "initially empty");
> System.IO.BinaryWriter out_Renamed = new System.IO.BinaryWriter(bos);
> long headerSize = bos.Length;
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
> formatter.Serialize(out_Renamed.BaseStream, dir);
> //out_Renamed.Close(); ----> BUGGY LINE
> Assert.IsTrue(headerSize < bos.Length, "contains more then just header");
> out_Renamed.Close();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (LUCENENET-65) Test case "TestSerializable" uses
the stream after closing.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Digy updated LUCENENET-65:
--------------------------
Priority: Trivial (was: Major)
> Test case "TestSerializable" uses the stream after closing.
> ------------------------------------------------------------
>
> Key: LUCENENET-65
> URL: https://issues.apache.org/jira/browse/LUCENENET-65
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Priority: Trivial
> Attachments: TestRAMDirectory.patch
>
>
>
> [Test]
> public virtual void TestSerializable()
> {
> Directory dir = new RAMDirectory();
> System.IO.MemoryStream bos = new System.IO.MemoryStream(1024);
> Assert.AreEqual(0, bos.Length, "initially empty");
> System.IO.BinaryWriter out_Renamed = new System.IO.BinaryWriter(bos);
> long headerSize = bos.Length;
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
> formatter.Serialize(out_Renamed.BaseStream, dir);
> //out_Renamed.Close(); ----> BUGGY LINE
> Assert.IsTrue(headerSize < bos.Length, "contains more then just header");
> out_Renamed.Close();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.